Fixed: EVFILT_TIMER just broken
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Sorry, Mea Culpa (again, sigh). RTFM. I totally misread the man page I thought the period was the identifier, but a nice darwin-kernel guy pointed out that I was doing it wrong. Godfrey On 2010-03-11, at 22:15 , Godfrey van der Linden wrote:
I've now explored every variant I can think of for using kevent with EVFILT_TIMER. If I read kevent(2) properly the default implementation for the TIMER is to set a repeating timeout that can fire every ident timeperiods and delivers a EVFILT_TIMER event.
Yet only ever get one hit, immediately and the event never fires again. Is this a documentation problem or am I missing something?
Here is the code that demonstrates the problem, not that it never returns after the initial immediate and incorrect kevents.
I'm running a vanilla x86_64 macbook pro with 10.6.2.
Please help, this problem has been screwing me over for the last week.
Godfrey
_______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com
participants (1)
-
Godfrey van der Linden