summaryrefslogtreecommitdiff
path: root/include/sys/wait.h
diff options
context:
space:
mode:
authorSzabolcs Nagy <nsz@port70.net>2019-12-22 12:11:30 +0000
committerRich Felker <dalias@aerifal.cx>2019-12-30 18:14:08 -0500
commitf296be74d5ab94f6ccac26e129d96e08f1c20538 (patch)
tree9f4df97e432e4b8eb92fcaa794c44ca972cfbfa3 /include/sys/wait.h
parent5e0c9f246cf7c0d174b7b8fbd9e02d4729ff66d2 (diff)
downloadmusl-f296be74d5ab94f6ccac26e129d96e08f1c20538.tar.gz
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()
Diffstat (limited to 'include/sys/wait.h')
-rw-r--r--include/sys/wait.h3
1 files changed, 2 insertions, 1 deletions
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 *);