Re: [PATCH]: multiple problem with the poll module

2007-01-03 Thread Paolo Bonzini
The previous patch had an issue. Here is an updated version. Ok, here is what I'm going to commit. I simplified a bit the logic to not using ioctl on hosts other than Mac OS X. The patch is -b to simplify reading it. Thanks, Paolo 2007-01-03 Paolo Bonzini <[EMAIL PROTECTED]>

Re: [PATCH]: multiple problem with the poll module

2006-12-22 Thread Yoann Vandoorselaere
Le vendredi 22 décembre 2006 à 12:41 +0100, Yoann Vandoorselaere a écrit : > Le vendredi 22 décembre 2006 à 11:55 +0100, Yoann Vandoorselaere a > écrit : > > Le vendredi 22 décembre 2006 à 11:31 +0100, Paolo Bonzini a écrit : > > > >> and it does not work, e.g., on file descriptors. Sorry. :-) >

Re: [PATCH]: multiple problem with the poll module

2006-12-22 Thread Yoann Vandoorselaere
Le vendredi 22 décembre 2006 à 11:55 +0100, Yoann Vandoorselaere a écrit : > Le vendredi 22 décembre 2006 à 11:31 +0100, Paolo Bonzini a écrit : > > >> and it does not work, e.g., on file descriptors. Sorry. :-) > > > > > > Could you please provide more information about the problem? (Note that

Re: [PATCH]: multiple problem with the poll module

2006-12-22 Thread Yoann Vandoorselaere
Le vendredi 22 décembre 2006 à 11:31 +0100, Paolo Bonzini a écrit : > >> 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).

Re: [PATCH]: multiple problem with the poll module

2006-12-22 Thread Paolo Bonzini
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. Just open a file, and poll it. It should give

Re: [PATCH]: multiple problem with the poll module

2006-12-22 Thread Yoann Vandoorselaere
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

Re: [PATCH]: multiple problem with the poll module

2006-12-22 Thread Paolo Bonzini
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 a

Re: [PATCH]: multiple problem with the poll module

2006-12-20 Thread Paolo Bonzini
Yoann Vandoorselaere wrote: Le mardi 19 décembre 2006 à 09:52 -0800, Paul Eggert a écrit : Paolo Bonzini <[EMAIL PROTECTED]> writes: I don't remember if it was Paul or Bruno who suggested that POLLHUP does not increase the return value. What do you think? It wasn't me, so I guess it was Brun

Re: [PATCH]: multiple problem with the poll module

2006-12-19 Thread Yoann Vandoorselaere
Le mardi 19 décembre 2006 à 09:52 -0800, Paul Eggert a écrit : > Paolo Bonzini <[EMAIL PROTECTED]> writes: > > > I don't remember if it was Paul or Bruno who suggested that POLLHUP > > does not increase the return value. What do you think? > > It wasn't me, so I guess it was Bruno. I don't have

Re: [PATCH]: multiple problem with the poll module

2006-12-19 Thread Paul Eggert
Paolo Bonzini <[EMAIL PROTECTED]> writes: > I don't remember if it was Paul or Bruno who suggested that POLLHUP > does not increase the return value. What do you think? It wasn't me, so I guess it was Bruno. I don't have any opinion on this one, other than that if it seems good to you and Yoann

Re: [PATCH]: multiple problem with the poll module

2006-12-19 Thread Yoann Vandoorselaere
Le mardi 19 décembre 2006 à 09:38 +0100, Paolo Bonzini a écrit : > > I have been experiencing several problem with the poll module, > > especially under MacOS X. > > I was about to submit a patch for poll to fix some of these issues, but > I prefer yours much more if it works. In fact, the FIONR

Re: [PATCH]: multiple problem with the poll module

2006-12-19 Thread Paolo Bonzini
I have been experiencing several problem with the poll module, especially under MacOS X. I was about to submit a patch for poll to fix some of these issues, but I prefer yours much more if it works. In fact, the FIONREAD ioctl is a hack and my patch added yet another hack instead of using t

[PATCH]: multiple problem with the poll module

2006-12-18 Thread Yoann Vandoorselaere
Hi, I have been experiencing several problem with the poll module, especially under MacOS X. The module make the following assumption (quoting from the source): "An hung up descriptor does not increase the return value". - However, POSIX state: Upon successful completion, poll() shall return