diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-05-22 04:27:24 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-05-22 04:27:24 +0200 |
commit | 7535cc788e37afaf9904d0ee8e2b98f1cb3a4cbd (patch) | |
tree | 5c7cb75ede06983171aabe98eb0cb825f1192fd6 /src/job.c | |
parent | 967d86b5cbc39f2b6edeea7ae109dbfcaaf4f006 (diff) |
systemctl: add --block switch for synchronous starting of units
Diffstat (limited to 'src/job.c')
-rw-r--r-- | src/job.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -56,7 +56,7 @@ void job_free(Job *j) { /* Detach from next 'bigger' objects */ if (j->installed) { - bus_job_send_removed_signal(j); + bus_job_send_removed_signal(j, !j->failed); if (j->unit->meta.job == j) { j->unit->meta.job = NULL; @@ -476,6 +476,7 @@ int job_finish_and_invalidate(Job *j, bool success) { return 0; } + j->failed = !success; u = j->unit; t = j->type; job_free(j); |