Skip to content

Commit

Permalink
cgroup,systemd: fix typo in dbus payload structure
Browse files Browse the repository at this point in the history
343c4f1 ("cgroups,systemd: garbage-collect failed invocations")
introduced an error in the dbus message by forgetting to add an
additional key-value pair to the property list. This commit
fixes this error.
  • Loading branch information
Snaipe committed Oct 27, 2023
1 parent 19b878d commit a9d8455
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cgroup_systemd.c
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ static int cgroup_systemd_join_cgroup(const char *parent, const char *name)
/* Set properties */
ok = ok && dbus_message_iter_open_container(&iter, DBUS_TYPE_ARRAY, "(sv)", &props);

ok = ok && bus_message_append(&props, "(sv)(sv)(sv)(sv)",
ok = ok && bus_message_append(&props, "(sv)(sv)(sv)(sv)(sv)",
"Description", "s", "bst",
"Delegate", "b", 1, /* Delegate all cgroup controllers to us */
"CollectMode", "s", "inactive-or-failed", /* Make sure failed invocations are garbage-collected */
Expand Down

0 comments on commit a9d8455

Please sign in to comment.