Thanks much (and to Crackers2). IN_CLOSE_WRITE moves the problem around a little. It triggers the -f $file or croak sometimes. IN_MOVED_TO doesn't fire for this particular operation. I like the .tmp idea. I searched for "atomic" and "inotify" but didn't consider looking for atomic Perl stuff. I'll give it a spin.
In reply to Re^2: Race condition in Linux::Inotify2 between dir and new file? (cp then mv)
by Your Mother
in thread Race condition in Linux::Inotify2 between dir and new file?
by Your Mother
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |