close() hangs when closing a kqueue in 10.5 only
close() hangs when closing a kqueue in 10.5 only
- Subject: close() hangs when closing a kqueue in 10.5 only
- From: Jerry Krinock <email@hidden>
- Date: Mon, 16 Aug 2010 11:41:01 -0700
A Cocoa app I've written uses a kqueue to watch its document file. It works fine in Mac OS 10.6, but when run in Mac OS 10.5.8, when I close the kqueue like this:
close (kqueueFileDescriptor) ;
The function close() hangs forever. The argument kqueueFileDescriptor is the integer I got previously from:
NSInteger kqueueFileDescriptor = kqueue() ;
Does anyone know what might be going on here? Documentation says that read() can block until data is ready, but there is no mention of this in the documentation for close().
I suppose I could just leave the kqueue open if running in 10.5, because a typical application run only creates one of them.
Is close() open-source? I can't find it in macosforge.org or opensource.apple.com.
Thank you,
Jerry Krinock _______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden