in reply to Re: Race condition in Linux::Inotify2 between dir and new file? (cp then mv)
in thread Race condition in Linux::Inotify2 between dir and new file?
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.
|
|---|