process-util: add helper to verify a pid via its pidfd

This commit is contained in:
Luca Boccassi
2023-01-20 12:18:05 +00:00
parent a98d69f0af
commit f840c7d58d
3 changed files with 25 additions and 11 deletions
+1
View File
@@ -190,6 +190,7 @@ assert_cc(TASKS_MAX <= (unsigned long) PID_T_MAX);
})
int pidfd_get_pid(int fd, pid_t *ret);
int pidfd_verify_pid(int pidfd, pid_t pid);
int setpriority_closest(int priority);