wait.2: Add P_PIDFD for waiting on a child referred to by a PID file descriptor

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2019-10-12 22:55:24 +02:00
parent 9e1b1cd286
commit f3ea12fb84
1 changed files with 7 additions and 0 deletions

View File

@ -261,6 +261,13 @@ arguments select the child(ren) to wait for, as follows:
.IP "\fIidtype\fP == \fBP_PID\fP"
Wait for the child whose process ID matches
.IR id .
.IP "\fIidtype\fP == \fBP_PIDFD\fP (since Linux 5.4)"
.\" commit 3695eae5fee0605f316fbaad0b9e3de791d7dfaf
Wait for the child referred to by the PID file descriptor specified in
.IR id .
(See
.BR pidfd_open (2)
for further information on PID file descriptors.)
.IP "\fIidtype\fP == \fBP_PGID\fP"
Wait for any child whose process group ID matches
.IR id .