chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Make it possible to disable smack separately from xattr support
[elogind.git]
/
src
/
core
/
unit.c
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;