]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
epoll_ctl.2: Give the reader a clue that the 'events' field can be zero
authorMichael Kerrisk <mtk.manpages@gmail.com>
Fri, 31 Mar 2017 05:01:57 +0000 (07:01 +0200)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Mon, 10 Apr 2017 11:47:49 +0000 (13:47 +0200)
'events' specified as zero still allows EPOLLHUP and
EPOLLERR to be reported.

Reported-by: Nicolas Biscos <nicolas.biscos+man7@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man2/epoll_ctl.2

index 1ab91ba9495f7a283dd204e33a0251469d8b3114..ded88ddc1257e2b22d8401e992706610e4896e89 100644 (file)
@@ -95,8 +95,8 @@ struct epoll_event {
 
 The
 .I events
-member is a bit mask composed using the following available event
-types:
+member is a bit mask composed by ORing together zero or more of
+the following available event types:
 .TP
 .B EPOLLIN
 The associated file is available for
@@ -134,6 +134,7 @@ Hang up happened on the associated file descriptor.
 .BR epoll_wait (2)
 will always wait for this event; it is not necessary to set it in
 .IR events .
+
 Note that when reading from a channel such as a pipe or a stream socket,
 this event merely indicates that the peer closed its end of the channel.
 Subsequent reads from the channel will return 0 (end of file)