summaryrefslogtreecommitdiff
path: root/src/dbus-execute.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-07-12 02:25:42 +0200
committerLennart Poettering <lennart@poettering.net>2010-07-12 03:07:01 +0200
commitb708e7cea941538bfd5e20ce0a723c19b7da7d1d (patch)
tree8d98112fa0c7c4432bd2058eb1e087abad0e0dc5 /src/dbus-execute.c
parentf1dfb62962fd25c1fba9d9479cb5df2d23e6712d (diff)
execute: optionally ignore return status of invoked commands
Diffstat (limited to 'src/dbus-execute.c')
-rw-r--r--src/dbus-execute.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dbus-execute.c b/src/dbus-execute.c
index 1ef6f25aeb..bb660b1853 100644
--- a/src/dbus-execute.c
+++ b/src/dbus-execute.c
@@ -258,7 +258,7 @@ int bus_execute_append_command(Manager *m, DBusMessageIter *i, const char *prope
assert(i);
assert(property);
- if (!dbus_message_iter_open_container(i, DBUS_TYPE_ARRAY, "(sasttuii)", &sub))
+ if (!dbus_message_iter_open_container(i, DBUS_TYPE_ARRAY, "(sasbttuii)", &sub))
return -ENOMEM;
LIST_FOREACH(command, c, c) {
@@ -283,6 +283,7 @@ int bus_execute_append_command(Manager *m, DBusMessageIter *i, const char *prope
status = (int32_t) c->exec_status.status;
if (!dbus_message_iter_close_container(&sub2, &sub3) ||
+ !dbus_message_iter_append_basic(&sub2, DBUS_TYPE_BOOLEAN, &c->ignore) ||
!dbus_message_iter_append_basic(&sub2, DBUS_TYPE_UINT64, &c->exec_status.start_timestamp.realtime) ||
!dbus_message_iter_append_basic(&sub2, DBUS_TYPE_UINT64, &c->exec_status.exit_timestamp.realtime) ||
!dbus_message_iter_append_basic(&sub2, DBUS_TYPE_UINT32, &c->exec_status.pid) ||