kqueue and determine if a file is still open

2006-01-18 Thread Stephan Leemburg
I'm using kqueue events to trigger certain programs. The programs run when a file is dropped into a certain directory. To avoid race conditions, I want to know if the newly created or modified files are still open by a process, so I can do what I need to do when no-one else is possibly

Re: kqueue and determine if a file is still open

2006-01-18 Thread Ted Unangst
On 1/18/06, Stephan Leemburg [EMAIL PROTECTED] wrote: I'm using kqueue events to trigger certain programs. The programs run when a file is dropped into a certain directory. To avoid race conditions, I want to know if the newly created or modified files are still open by a process, so I can do