[New-bugs-announce] [issue7477] kqueue timers don't work properly

Hasan report at bugs.python.org
Fri Dec 11 13:08:52 CET 2009


New submission from Hasan <halayli at gmail.com>:

kqueue timers are not working at all on Mac OSX 10.6.1 (probably not 
working on other BSDs as well but haven't tested it).

Here's a simply repro:

from select import *
kq = kqueue()
e = kevent(10000, flags=KQ_EV_ENABLE|KQ_EV_ONESHOT, 
filter=KQ_FILTER_TIMER)
e
<select.kevent ident=10000 filter=-7 flags=0x14 fflags=0x0 data=0x0 
udata=0x0>
new_e = f.control([e], 1, 0)

This should block 10s before it returns control with new_e having a timer 
event returned. However, it isn't the case.
control returns immediately returning a busted event:
[<select.kevent ident=10000 filter=-7 flags=0x4000 fflags=0x0 data=0x2 
udata=0x0>]

Am I missing something?

----------
components: Library (Lib)
messages: 96247
nosy: hasan
severity: normal
status: open
title: kqueue timers don't work properly
type: behavior
versions: Python 2.6

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7477>
_______________________________________


More information about the New-bugs-announce mailing list