chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d686f03
)
core: unit_inactive_or_pending() should actually do as it claims
author
Lennart Poettering
<lennart@poettering.net>
Mon, 6 May 2013 20:28:39 +0000
(22:28 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Mon, 6 May 2013 20:28:56 +0000
(22:28 +0200)
src/core/unit.c
patch
|
blob
|
history
diff --git
a/src/core/unit.c
b/src/core/unit.c
index dc8bf833830f3c57bc3e41670065064140a37df2..9b36b225fa0151cf4c4256dc4ed12265825eea96 100644
(file)
--- 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;