Kqueues TOO fast
Kqueues TOO fast
- Subject: Kqueues TOO fast
- From: Ken Tozier <email@hidden>
- Date: Sun, 18 Jul 2004 05:13:11 -0400
I'm using kqueues to monitor some files and have found them to be too
fast in the case where external processes create new files in a watch
folder. Is there a way to detect when a write starts and when it ends?
I wrote a delay loop that uses NSString stringWithContentsOfFile and
compare that string against an empty string, but it seems pretty crude
and could fail if an external process writes a larger file to the watch
folder.
Is there a more elegant way to do this?
Thanks,
Ken
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.