Re: BUG: nice => 1 causes event handler to be called multiple times
[email protected] (Marc Lehmann) Sat, 23 Dec 2006 04:24:04 +0100
| Newsgroups | perl.loop |
|---|---|
| Message-ID | <[email protected]> |
On Sat, Dec 23, 2006 at 04:18:58AM +0100, Marc Lehmann <[email protected]> wrote: > is that Event somehow confuses the first and the second poll result: with > nice => 0, fd 8 is always first in poll, with nice => 1, fd 8 sometimes > gets moved intot he second slot, and everytime this happens, I get the > problem. > > This is just a quick guess at whats happening. > A quick guess of what might have happened (without looking at the code) The same bug happens when I force the use of select instead of poll: select(9, [5 7 8], [], [], {0, 0}) = 1 (in [8], left {0, 0}) accept(8, {sa_family=AF_INET, sin_port=htons(46735), sin_addr=inet_addr("10.0.0.1")}, [566935683088]) = 4 select(10, [5 7 8 9], [], [], {0, 0}) = 1 (in [9], left {0, 0}) accept(8, -- The choice of a -----==- _GNU_ ----==-- _ generation Marc Lehmann ---==---(_)__ __ ____ __ [email protected] --==---/ / _ \/ // /\ \/ / http://schmorp.de/ -=====/_/_//_/\_,_/ /_/\_\ XX11-RIPE