summaryrefslogtreecommitdiff
path: root/src/dbus-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/dbus-job.c
parent967d86b5cbc39f2b6edeea7ae109dbfcaaf4f006 (diff)
systemctl: add --block switch for synchronous starting of units
Diffstat (limited to 'src/dbus-job.c')
-rw-r--r--src/dbus-job.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/dbus-job.c b/src/dbus-job.c
index 3a6e7159e9..34e64fc681 100644
--- a/src/dbus-job.c
+++ b/src/dbus-job.c
@@ -197,15 +197,19 @@ oom:
log_error("Failed to allocate job change signal.");
}
-void bus_job_send_removed_signal(Job *j) {
+void bus_job_send_removed_signal(Job *j, bool success) {
char *p = NULL;
DBusMessage *m = NULL;
+ dbus_bool_t b = success;
assert(j);
- if (set_isempty(j->manager->subscribed) || !j->sent_dbus_new_signal)
+ if (set_isempty(j->manager->subscribed))
return;
+ if (!j->sent_dbus_new_signal)
+ bus_job_send_change_signal(j);
+
if (!(p = job_dbus_path(j)))
goto oom;
@@ -215,6 +219,7 @@ void bus_job_send_removed_signal(Job *j) {
if (!dbus_message_append_args(m,
DBUS_TYPE_UINT32, &j->id,
DBUS_TYPE_OBJECT_PATH, &p,
+ DBUS_TYPE_BOOLEAN, &b,
DBUS_TYPE_INVALID))
goto oom;