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.
In reply to Re: Testing filesystem monitor
by bart
in thread Testing filesystem monitor
by dragonchild
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |