X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fcore%2Fjob.c;h=9a425a6da1cdaf28e2ac5dd4f4852e6027be3fec;hb=3ecaa09bccd8a59c9f1e06756a1334a162206dc4;hp=af5855b71d6a9c840c94b7cef7e55ee40d877c95;hpb=b92bea5d2a9481de69bb627a7b442a9f58fca43d;p=elogind.git diff --git a/src/core/job.c b/src/core/job.c index af5855b71..9a425a6da 100644 --- a/src/core/job.c +++ b/src/core/job.c @@ -840,9 +840,11 @@ int job_finish_and_invalidate(Job *j, JobResult result, bool recursive) { job_result_to_string(result), NULL); - unit_trigger_on_failure(u); + unit_start_on_failure(u); } + unit_trigger_notify(u); + finish: /* Try to start the next jobs that can be started */ SET_FOREACH(other, u->dependencies[UNIT_AFTER], i)