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 (from parent 1:
70f12d3
)
job: recursively fail BoundBy dependencies
author
Lennart Poettering
<lennart@poettering.net>
Fri, 29 Oct 2010 04:04:42 +0000
(06:04 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Fri, 29 Oct 2010 14:28:30 +0000
(16:28 +0200)
src/job.c
patch
|
blob
|
history
diff --git
a/src/job.c
b/src/job.c
index 8a74f8b614237d2c8d44f58a1ea37f40cd3eeb53..8ab12cd62410eb3287e4a6c052915108b79fa604 100644
(file)
--- a/
src/job.c
+++ b/
src/job.c
@@
-506,6
+506,13
@@
int job_finish_and_invalidate(Job *j, bool success) {
other->meta.job->type == JOB_RELOAD_OR_START))
job_finish_and_invalidate(other->meta.job, false);
other->meta.job->type == JOB_RELOAD_OR_START))
job_finish_and_invalidate(other->meta.job, false);
+ SET_FOREACH(other, u->meta.dependencies[UNIT_BOUND_BY], i)
+ if (other->meta.job &&
+ (other->meta.job->type == JOB_START ||
+ other->meta.job->type == JOB_VERIFY_ACTIVE ||
+ other->meta.job->type == JOB_RELOAD_OR_START))
+ job_finish_and_invalidate(other->meta.job, false);
+
SET_FOREACH(other, u->meta.dependencies[UNIT_REQUIRED_BY_OVERRIDABLE], i)
if (other->meta.job &&
!other->meta.job->override &&
SET_FOREACH(other, u->meta.dependencies[UNIT_REQUIRED_BY_OVERRIDABLE], i)
if (other->meta.job &&
!other->meta.job->override &&