summaryrefslogtreecommitdiff
path: root/src/job.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-05-22 04:27:24 +0200
committerLennart Poettering <lennart@poettering.net>2010-05-22 04:27:24 +0200
commit7535cc788e37afaf9904d0ee8e2b98f1cb3a4cbd (patch)
tree5c7cb75ede06983171aabe98eb0cb825f1192fd6 /src/job.c
parent967d86b5cbc39f2b6edeea7ae109dbfcaaf4f006 (diff)
systemctl: add --block switch for synchronous starting of units
Diffstat (limited to 'src/job.c')
-rw-r--r--src/job.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/job.c b/src/job.c
index 9937ed735b..78fe136328 100644
--- a/src/job.c
+++ b/src/job.c
@@ -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);