close() hangs when closing a kqueue in 10.5 only
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com 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 (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)
-
Jerry Krinock