From b3b35b86aa4ba1c442ac708eee8b361e2c5b8f42 Mon Sep 17 00:00:00 2001 From: jdolecek Date: Thu, 3 Jan 2002 22:18:09 +0000 Subject: [PATCH] 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. --- lib/libc/sys/poll.2 | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/lib/libc/sys/poll.2 b/lib/libc/sys/poll.2 index 8fb013cd41d7..8c8c381ef47a 100644 --- a/lib/libc/sys/poll.2 +++ b/lib/libc/sys/poll.2 @@ -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