diff options
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/cgroup.c | 2 | ||||
-rw-r--r-- | src/core/service.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/core/cgroup.c b/src/core/cgroup.c index 90cee12be7..70f6d4af0f 100644 --- a/src/core/cgroup.c +++ b/src/core/cgroup.c @@ -1208,7 +1208,7 @@ int unit_search_main_pid(Unit *u, pid_t *ret) { continue; /* Ignore processes that aren't our kids */ - if (get_parent_of_pid(npid, &ppid) >= 0 && ppid != mypid) + if (get_process_ppid(npid, &ppid) >= 0 && ppid != mypid) continue; if (pid != 0) diff --git a/src/core/service.c b/src/core/service.c index 2d92799fec..31a0d3aebe 100644 --- a/src/core/service.c +++ b/src/core/service.c @@ -175,7 +175,7 @@ static int service_set_main_pid(Service *s, pid_t pid) { s->main_pid = pid; s->main_pid_known = true; - if (get_parent_of_pid(pid, &ppid) >= 0 && ppid != getpid()) { + if (get_process_ppid(pid, &ppid) >= 0 && ppid != getpid()) { log_unit_warning(UNIT(s), "Supervising process "PID_FMT" which is not our child. We'll most likely not notice when it exits.", pid); s->main_pid_alien = true; } else |