process-util: rename get_parent_of_pid() → get_process_ppid()

In order to match the other get_process_xyz() calls.
This commit is contained in:
Lennart Poettering
2015-10-27 14:01:48 +01:00
parent 405f8907b9
commit 6bc73acb01
5 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -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)
+1 -1
View File
@@ -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