I don't remember if it was Paul or Bruno who suggested that POLLHUP does not increase the return value. What do you think?Attached is an improved version that should conform more to GnuLib coding standard.
Hi Yoann,unfortunately the patch is wrong, as it never sets POLLHUP on Mac OS X and it does not work, e.g., on file descriptors. Sorry. :-)
Paolo