'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>
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
.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)