Add a note that POLLIN event is returned rather than POLLHUP when
remote end of a socket is closed. Adresses kern/5486 by Ignatios Souvatzis.
This commit is contained in:
parent
ac054a2787
commit
b3b35b86aa
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: poll.2,v 1.11 2001/11/14 18:48:11 christos Exp $
|
||||
.\" $NetBSD: poll.2,v 1.12 2002/01/03 22:18:09 jdolecek Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
.\" All rights reserved.
|
||||
|
@ -118,7 +118,12 @@ and
|
|||
POLLOUT
|
||||
should never be present in the
|
||||
.Fa revents
|
||||
bitmask at the same time.
|
||||
bitmask at the same time. If the remote end of a socket is closed,
|
||||
.Fn poll
|
||||
returns
|
||||
POLLIN
|
||||
event, rather than
|
||||
POLLHUP.
|
||||
.It POLLNVAL
|
||||
The file descriptor is not open. This flag is always checked, even
|
||||
if not present in the
|
||||
|
|
Loading…
Reference in New Issue