Le vendredi 22 décembre 2006 à 10:48 +0100, Paolo Bonzini a écrit : > >>> 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,
Hi Paolo, > unfortunately the patch is wrong, as it never sets POLLHUP on Mac OS X It does: if recv() return value is lesser than 0 and errno is not set to ENOTCONN. Then depending on the errno value, it will set POLLHUP or POLLERR. > and it does not work, e.g., on file descriptors. Sorry. :-) Could you please provide more information about the problem? (Note that the current CVS version doesn't work on socket, which is not much better). Providing your test case would help. Regards, -- Yoann Vandoorselaere | Responsable R&D / CTO | PreludeIDS Technologies Tel: +33 (0)8 70 70 21 58 Fax: +33(0)4 78 42 21 58 http://www.prelude-ids.com