diff options
author | Lennart Poettering <lennart@poettering.net> | 2011-09-21 19:56:15 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2011-09-21 19:57:27 +0200 |
commit | 57981b98123a6504c68981c7e3cd43f7cc1668f7 (patch) | |
tree | d86a2da1572d6d943555e9a9f6f6ad2a1787fcea /src | |
parent | f957632b960a0a42999b38ded7089fa602b41745 (diff) |
job: after converting a job from restart to start readd it to run queue
When we converted a restart job it's time to look again whether any of
its dependencies are now runnable.
https://bugzilla.redhat.com/show_bug.cgi?id=735013
Diffstat (limited to 'src')
-rw-r--r-- | src/job.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -544,7 +544,9 @@ int job_finish_and_invalidate(Job *j, JobResult result) { j->type = JOB_START; job_add_to_run_queue(j); - return 0; + + u = j->unit; + goto finish; } j->result = result; @@ -613,6 +615,7 @@ int job_finish_and_invalidate(Job *j, JobResult result) { unit_trigger_on_failure(u); } +finish: /* Try to start the next jobs that can be started */ SET_FOREACH(other, u->meta.dependencies[UNIT_AFTER], i) if (other->meta.job) |