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:
53c6a35
)
unit: don't retroactively start units if we failed to shutdown a unit
author
Lennart Poettering
<lennart@poettering.net>
Thu, 2 Sep 2010 23:45:35 +0000
(
01:45
+0200)
committer
Lennart Poettering
<lennart@poettering.net>
Thu, 2 Sep 2010 23:45:53 +0000
(
01:45
+0200)
src/unit.c
patch
|
blob
|
history
diff --git
a/src/unit.c
b/src/unit.c
index d5ed5e1421f57624da9467b50effc1428ed98726..001d7659c430d745e26881890bc9f40ab6b5fe1c 100644
(file)
--- a/
src/unit.c
+++ b/
src/unit.c
@@
-1084,7
+1084,7
@@
void unit_notify(Unit *u, UnitActiveState os, UnitActiveState ns) {
* something is already activated. */
if (unexpected && u->meta.manager->n_deserializing <= 0) {
- if (UNIT_IS_INACTIVE_OR_
DEACTIVATING
(os) && UNIT_IS_ACTIVE_OR_ACTIVATING(ns))
+ if (UNIT_IS_INACTIVE_OR_
FAILED
(os) && UNIT_IS_ACTIVE_OR_ACTIVATING(ns))
retroactively_start_dependencies(u);
else if (UNIT_IS_ACTIVE_OR_ACTIVATING(os) && UNIT_IS_INACTIVE_OR_DEACTIVATING(ns))
retroactively_stop_dependencies(u);