mirror of https://github.com/mkerrisk/man-pages
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:
parent
b09322c487
commit
7e8924ba6a
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue