poll.2: POLLERR 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:38:01 +02:00
parent 1a2e88acd6
commit b3da9249db
1 changed files with 2 additions and 0 deletions

View File

@ -201,6 +201,8 @@ Error condition (only returned in
.IR revents ;
ignored in
.IR events ).
This bit is also set for a file descriptor referring
to the write end of a pipe when the read end has been closed.
.TP
.B POLLHUP
Hang up (only returned in