epoll_ctl.2: EPOLLERR is also set on write end of a pipe when the read end is closed

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-29 08:42:28 +02:00
parent b3da9249db
commit 4258cf6d03
1 changed files with 2 additions and 0 deletions

View File

@ -121,6 +121,8 @@ operations.
.TP
.B EPOLLERR
Error condition happened on the associated file descriptor.
This event is also reported for the write end of a pipe when the read end
has been closed.
.BR epoll_wait (2)
will always wait for this event; it is not necessary to set it in
.IR events .