epoll_ctl.2: Give the reader a clue that the 'events' field can be zero

'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>
This commit is contained in:
Michael Kerrisk 2017-03-31 07:01:57 +02:00
parent 25c2dd2f87
commit 967631f2c8
1 changed files with 3 additions and 2 deletions

View 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)