Compare commits
2 Commits
b63c88b627
...
79bb680cbf
Author | SHA1 | Date |
---|---|---|
Anita Zhang | 79bb680cbf | |
Lennart Poettering | 4c2ef32767 |
|
@ -3257,7 +3257,12 @@ static void socket_trigger_notify(Unit *u, Unit *other) {
|
||||||
assert(other);
|
assert(other);
|
||||||
|
|
||||||
/* Filter out invocations with bogus state */
|
/* 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;
|
return;
|
||||||
|
|
||||||
/* Don't propagate state changes from the service if we are already down */
|
/* Don't propagate state changes from the service if we are already down */
|
||||||
|
|
Loading…
Reference in New Issue