>From 51d39900589664c718520f34de23462c7d164c9e Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Sun, 22 Dec 2019 12:11:30 +0000 Subject: [PATCH 4/6] sys/wait.h: add P_PIDFD from linux v5.4 allows waiting on a pidfd, in the future it might allow retrieving the exit status by a non-parent process, see linux commit 3695eae5fee0605f316fbaad0b9e3de791d7dfaf pidfd: add P_PIDFD to waitid() --- include/sys/wait.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/sys/wait.h b/include/sys/wait.h index d9adbdec..d4b1f2e1 100644 --- a/include/sys/wait.h +++ b/include/sys/wait.h @@ -13,7 +13,8 @@ extern "C" { typedef enum { P_ALL = 0, P_PID = 1, - P_PGID = 2 + P_PGID = 2, + P_PIDFD = 3 } idtype_t; pid_t wait (int *); -- 2.23.0