mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-05 09:17:44 +03:00
core: unit_inactive_or_pending() should actually do as it claims
This commit is contained in:
parent
d686f034c3
commit
d956ac29a1
@ -2676,6 +2676,9 @@ bool unit_inactive_or_pending(Unit *u) {
|
||||
|
||||
/* Returns true if the unit is inactive or going down */
|
||||
|
||||
if (UNIT_IS_INACTIVE_OR_DEACTIVATING(unit_active_state(u)))
|
||||
return true;
|
||||
|
||||
if (unit_stop_pending(u))
|
||||
return true;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user