tree-wide: prefer sending pifds over pids when creating scope units

This commit is contained in:
Lennart Poettering
2023-10-05 17:10:00 +02:00
parent b0ae589b3e
commit 7eda208ffe
10 changed files with 62 additions and 15 deletions
+6 -1
View File
@@ -945,7 +945,12 @@ static int transient_scope_set_properties(sd_bus_message *m) {
if (r < 0)
return r;
r = sd_bus_message_append(m, "(sv)", "PIDs", "au", 1, (uint32_t) getpid_cached());
_cleanup_(pidref_done) PidRef pidref = PIDREF_NULL;
r = pidref_set_self(&pidref);
if (r < 0)
return r;
r = bus_append_scope_pidref(m, &pidref);
if (r < 0)
return bus_log_create_error(r);