If a file isn't finished being created, your read loop will hang while waiting for EOF.
I'm sure this is wrong (since we're talking about plain files, not pipes or sockets), but I can't test it right now.
In reply to Re^2: Monitoring directory for new files
by ikegami
in thread Monitoring directory for new files
by ranciid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |