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 _______________________________________________ Chicken-hackers mailing list Chicken-hackers@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-hackers