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:
Michael Kerrisk 2019-09-23 22:07:21 +02:00
parent 4e547536bb
commit 57a436eb4c
1 changed files with 4 additions and 6 deletions

View File

@ -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
\&