Subject: Re: CVS commit: basesrc/lib/libc/sys
To: None <thorpej@wasabisystems.com>
From: Jaromir Dolecek <jdolecek@netbsd.org>
List: tech-kern
Date: 01/04/2002 23:00:36
Jason R Thorpe wrote:
> Err, is this really correct?  What does Solaris do in this situation?

I've tried and both Solaris and (*chuckle*) Linux seem to do same
thing.

If you think about it, it's more sensible to return POLLIN
rathen than POLLHUP there - it's perfectly valid when other end
closes the connection, this is same as when the end-of-file is
encountered for files. Further read on such remotely closed socket
then returns with zero length of course, not an error.

Jaromir 
-- 
Jaromir Dolecek <jdolecek@NetBSD.org> http://www.NetBSD.org/Ports/i386/ps2.html
-=  Those who would give up liberty for a little temporary safety deserve  =-
-=  neither liberty nor safety, and will lose both.  -- Benjamin Franklin  =-