aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2019-09-23 22:07:21 +0200
committerMichael Kerrisk <mtk.manpages@gmail.com>2019-10-10 12:24:28 +0200
commit57a436eb4c44e157761507d7c5953ba47602dc4b (patch)
tree13656f9a6a757d95f47254ac23e6bf0635e7895b
parent4e547536bb028fb56207bf77b3470aea0345bd08 (diff)
downloadman-pages-57a436eb4c44e157761507d7c5953ba47602dc4b.tar.gz
pidfd_open.2: Improve description in example
Reported-by: Christian Brauner <christian.brauner@ubuntu.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
-rw-r--r--man2/pidfd_open.210
1 files changed, 4 insertions, 6 deletions
diff --git a/man2/pidfd_open.2 b/man2/pidfd_open.2
index b67320708a..887aa769d0 100644
--- a/man2/pidfd_open.2
+++ b/man2/pidfd_open.2
@@ -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
\&