This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author hasan
Recipients hasan
Date 2009-12-11.12:08:48
SpamBayes Score 8.55022e-06
Marked as misclassified No
Message-id <1260533332.03.0.937259620365.issue7477@psf.upfronthosting.co.za>
In-reply-to
Content
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?
History
Date User Action Args
2009-12-11 12:08:52hasansetrecipients: + hasan
2009-12-11 12:08:52hasansetmessageid: <1260533332.03.0.937259620365.issue7477@psf.upfronthosting.co.za>
2009-12-11 12:08:49hasanlinkissue7477 messages
2009-12-11 12:08:48hasancreate