Subject: Re: CVS commit: basesrc/lib/libc/sys
To: None <>
From: Jaromir Dolecek <>
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

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 Dolecek <>
-=  Those who would give up liberty for a little temporary safety deserve  =-
-=  neither liberty nor safety, and will lose both.  -- Benjamin Franklin  =-