chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
service: make chain of main commands and control commands independent of each other...
[elogind.git]
/
src
/
unit.c
diff --git
a/src/unit.c
b/src/unit.c
index 7d673e138d291340b7eb334ea620bf51eb8060c7..9dd02676e385829e2d5d82a8c38f4c6b42d1057a 100644
(file)
--- a/
src/unit.c
+++ b/
src/unit.c
@@
-1067,7
+1067,7
@@
static void retroactively_stop_dependencies(Unit *u) {
unit_check_unneeded(other);
}
unit_check_unneeded(other);
}
-void unit_notify(Unit *u, UnitActiveState os, UnitActiveState ns) {
+void unit_notify(Unit *u, UnitActiveState os, UnitActiveState ns
, bool reload_success
) {
dual_timestamp ts;
bool unexpected;
dual_timestamp ts;
bool unexpected;
@@
-1134,7
+1134,7
@@
void unit_notify(Unit *u, UnitActiveState os, UnitActiveState ns) {
if (u->meta.job->state == JOB_RUNNING) {
if (ns == UNIT_ACTIVE)
if (u->meta.job->state == JOB_RUNNING) {
if (ns == UNIT_ACTIVE)
- job_finish_and_invalidate(u->meta.job,
true
);
+ job_finish_and_invalidate(u->meta.job,
reload_success
);
else if (ns != UNIT_ACTIVATING && ns != UNIT_RELOADING) {
unexpected = true;
else if (ns != UNIT_ACTIVATING && ns != UNIT_RELOADING) {
unexpected = true;