1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-05 15:21:37 +03:00

Merge pull request #14527 from poettering/socket-state-fix

core: propagate service state to socket in more load states
This commit is contained in:
Anita Zhang 2020-01-09 17:10:48 -08:00 committed by GitHub
commit 79bb680cbf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3257,7 +3257,12 @@ static void socket_trigger_notify(Unit *u, Unit *other) {
assert(other);
/* Filter out invocations with bogus state */
if (other->load_state != UNIT_LOADED || other->type != UNIT_SERVICE)
if (!IN_SET(other->load_state,
UNIT_LOADED,
UNIT_NOT_FOUND,
UNIT_BAD_SETTING,
UNIT_ERROR,
UNIT_MASKED) || other->type != UNIT_SERVICE)
return;
/* Don't propagate state changes from the service if we are already down */