sys/wait.h: add P_PIDFD from linux v5.4
authorSzabolcs Nagy <nsz@port70.net>
Sun, 22 Dec 2019 12:11:30 +0000 (12:11 +0000)
committerRich Felker <dalias@aerifal.cx>
Mon, 30 Dec 2019 23:14:08 +0000 (18:14 -0500)
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

index d9adbde..d4b1f2e 100644 (file)
@@ -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 *);