poll.2: After POLLHUP, EOF will be seen only after all data has been consumed

Reported-by: Sam Varshavchik <mrsam@courier-mta.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2015-05-02 09:20:13 +02:00
parent b09322c487
commit 7e8924ba6a
1 changed files with 4 additions and 0 deletions

View File

@ -194,6 +194,10 @@ Hang up (only returned in
.IR revents ;
ignored 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)
only after all outstanding data in the channel has been consumed.
.TP
.B POLLNVAL
Invalid request: