]> err.no Git - systemd/commitdiff
job: recursively fail BoundBy dependencies
authorLennart Poettering <lennart@poettering.net>
Fri, 29 Oct 2010 04:04:42 +0000 (06:04 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 29 Oct 2010 14:28:30 +0000 (16:28 +0200)
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);
 
+                        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 &&