chicken-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-hackers] [PATCH] Fix for poll() "special" values in revent


From: Jim Ursetto
Subject: Re: [Chicken-hackers] [PATCH] Fix for poll() "special" values in revent
Date: Wed, 27 Feb 2013 15:59:11 -0600

On Feb 26, 2013, at 12:02 PM, Peter Bex wrote:

> Hi all,
> 
> Here's a patch to deal with "special" situations in poll().  Mario found a
> problem on Linux: [...]
> In any case, we don't check poll() revents for any other values than
> POLLIN/POLLOUT, which is clearly wrong; if a pipe is closed, there's
> nothing to read, but it will be POLLHUP'ed.  Apparently on non-Linux
> this generally won't be signalled like this (except maybe in some
> situations), which is why this wasn't noticed before.

Problem will likely occur on Solaris as well, according to

https://blogs.oracle.com/vlad/entry/poll_and_pollhup_in_solaris

Jim



reply via email to

[Prev in Thread] Current Thread [Next in Thread]