XP is just a number | |
PerlMonks |
Re: Race conditionsby happy.barney (Friar) |
on Nov 16, 2010 at 17:27 UTC ( [id://871783]=note: print w/replies, xml ) | Need Help?? |
do you want to have only one process that creates "file.html" ?
Then use IO::File with O_CREAT | O_EXCL and you can remove flock. Or is there something hidden ? Btw, it looks to me that proper unlink argument should be $SEMAPHORE.
In Section
Seekers of Perl Wisdom
|
|