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
@@ -188,7 +188,7 @@ int pidfd_get_ppid(int fd, pid_t *ret) {
assert(FLAGS_SET(info.mask, PIDFD_INFO_PID));
if (info.ppid == 0)
if (info.ppid == 0) /* See comments in pid_get_ppid() */
return -EADDRNOTAVAIL;
if (ret)