diff options
author | Lennart Poettering <lennart@poettering.net> | 2013-05-06 22:28:39 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-05-06 22:28:56 +0200 |
commit | d956ac29a1b8120e83922fa8e75cdd8f6e562529 (patch) | |
tree | 74a14d2674828935970803dbc2a25587c3e1251e /src/core/unit.c | |
parent | update TODO (diff) | |
download | systemd-d956ac29a1b8120e83922fa8e75cdd8f6e562529.tar.xz systemd-d956ac29a1b8120e83922fa8e75cdd8f6e562529.zip |
core: unit_inactive_or_pending() should actually do as it claims
Diffstat (limited to '')
-rw-r--r-- | src/core/unit.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/unit.c b/src/core/unit.c index dc8bf83383..9b36b225fa 100644 --- a/src/core/unit.c +++ b/src/core/unit.c @@ -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; |