pid1: fix GetUnitProcesses
This effectively reverts one chunk of 657ee2d82b
.
For a while I couldn't figure out why 'systemctl status -- -.slice' fails to
list any processes...
This commit is contained in:
parent
107c20518b
commit
624e4fcffa
|
@ -1062,7 +1062,7 @@ static int append_cgroup(sd_bus_message *reply, const char *p, Set *pids) {
|
|||
if (r == 0)
|
||||
break;
|
||||
|
||||
j = path_join(p, g);
|
||||
j = path_join(empty_to_root(p), g);
|
||||
if (!j)
|
||||
return -ENOMEM;
|
||||
|
||||
|
|
Loading…
Reference in New Issue