mirror of https://github.com/mkerrisk/man-pages
pidfd_open.2: Improve description in example
Reported-by: Christian Brauner <christian.brauner@ubuntu.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
4e547536bb
commit
57a436eb4c
|
@ -113,13 +113,11 @@ flag in
|
|||
.SH EXAMPLE
|
||||
The program below opens a PID file descriptor for the
|
||||
process whose PID is specified as its command-line argument.
|
||||
It then monitors the file descriptor for readability
|
||||
.RB ( POLLIN )
|
||||
using
|
||||
.BR poll (2).
|
||||
When the process with the specified by PID terminates,
|
||||
It then uses
|
||||
.BR poll (2)
|
||||
returns, and indicates that the file descriptor is readable.
|
||||
to monitor the file descriptor for process exit, as indicated by an
|
||||
.BR EPOLLIN
|
||||
event.
|
||||
.\"
|
||||
.SS Program source
|
||||
\&
|
||||
|
|
Loading…
Reference in New Issue