in reply to Testing filesystem monitor

If you ask me, even ChangeNotify() is overkill, as every file is a new file, as you delete them after processing.

So what would I do? Just loop through all the files, attempt to flock them in nonblocking mode, and if you find one, process it, and delete it. And then start again from the top.

If you don't find one, just sleep a few seconds and try again.