I didn't look at your code in depth, but I did see something that you probably want to change.
close SESSLOCK; unlink "~/$session.l";
I think you want to switch the order of these two lines as the lock goes away as soon as you close the file, so inbetween the time you close and unlink, ~/$session.l could be used for nefarious purposes. :-)
In reply to Re: Flocking .l file instead of file to be updated
by duff
in thread Flocking .l file instead of file to be updated
by delirium
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |