Just another Perl shrine | |
PerlMonks |
Re^3: Temporary usage of RAM memoryby fullermd (Priest) |
on Apr 11, 2014 at 05:16 UTC ( [id://1081909]=note: print w/replies, xml ) | Need Help?? |
Only one of the racing processes can win the rename, so you have to check it for failure and re-try the readdir/rename loop. So you don't need locking, but you do need checking and retrying.
In Section
Seekers of Perl Wisdom
|
|