[issue7477] kqueue timers don't work properly

2009-12-11 Thread Hasan
Hasan added the comment: Closing it. My mistake. I was passing incorrect arguments. KQ_EV_ONESHOT requires KQ_EV_ADD as well, and timer data goes into data. -- status: open -> closed ___ Python tracker ___

[issue7477] kqueue timers don't work properly

2009-12-11 Thread Hasan
Hasan added the comment: Typo in the repro. The statement: new_e = f.control should be: new_e = kq.control -- ___ Python tracker ___

[issue7477] kqueue timers don't work properly

2009-12-11 Thread Hasan
New submission from Hasan : 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(1, flags=KQ_EV_ENABLE|KQ_EV_ONESHOT, filter=KQ_FILTER_TIMER) e new_e