diff --git a/man2/pidfd_open.2 b/man2/pidfd_open.2 index 1ca0b8008..f77eed372 100644 --- a/man2/pidfd_open.2 +++ b/man2/pidfd_open.2 @@ -169,6 +169,10 @@ nothing can be read from the file descriptor .RB ( read (2) on the file descriptor fails with the error .BR EINVAL ). +.IP * +If the PID file descriptor refers to a child of the calling process, +then it can be waited on using +.BR waitid (2). .PP The .BR pidfd_open () @@ -182,7 +186,8 @@ However, the latter technique is possible only if the file system is mounted; furthermore, the file descriptor obtained in this way is .I not -pollable. +pollable and can't be waited on with +.BR waitid (2). .SH EXAMPLE The program below opens a PID file descriptor for the process whose PID is specified as its command-line argument. @@ -251,4 +256,5 @@ main(int argc, char *argv[]) .BR pidfd_send_signal (2), .BR poll (2), .BR select (2), +.BR waitid (2), .BR epoll (7)