process-util: port pidref_get_uid() and pidref_is_my_child() to pidfd helpers

This commit is contained in:
Mike Yuan
2025-01-04 17:48:22 +01:00
parent 85e7bbfaa4
commit 47f64104d1
5 changed files with 62 additions and 34 deletions
+1 -1
View File
@@ -349,7 +349,7 @@ int namespace_get_leader(pid_t pid, NamespaceType type, pid_t *ret) {
for (;;) {
pid_t ppid;
r = get_process_ppid(pid, &ppid);
r = pid_get_ppid(pid, &ppid);
if (r < 0)
return r;