From: Lennart Poettering Date: Mon, 6 May 2013 20:28:39 +0000 (+0200) Subject: core: unit_inactive_or_pending() should actually do as it claims X-Git-Tag: v203~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d956ac29a1b8120e83922fa8e75cdd8f6e562529;p=thirdparty%2Fsystemd.git core: unit_inactive_or_pending() should actually do as it claims --- diff --git a/src/core/unit.c b/src/core/unit.c index dc8bf833830..9b36b225fa0 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;