Skip to content

Commit

Permalink
make transient scope slice optional
Browse files Browse the repository at this point in the history
  • Loading branch information
vodik committed Aug 24, 2013
1 parent 10e8bbc commit 54be85d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions dbus-systemd.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,12 @@ int start_transient_scope(dbus_bus *bus,
dbus_message_append(m, "ss", name, "fail");

dbus_open_container(m, 'a', "(sv)");
dbus_message_append(m, "(sv)", "Description", "s", description);
dbus_message_append(m, "(sv)", "Slice", "s", slice);

dbus_message_append(m, "(sv)", "Description", "s", description);

if (slice)
dbus_message_append(m, "(sv)", "Slice", "s", slice);

dbus_message_append(m, "(sv)", "PIDs", "au", 1, pid);
dbus_message_append(m, "(sv)", "MemoryLimit", "t", mem);
dbus_message_append(m, "(sv)", "DevicePolicy", "s", "strict");
Expand Down

0 comments on commit 54be85d

Please sign in to comment.