I have a simple program strait out of the text book:
open(FH, "+< rotator_lock") or die "can't open: $!";
flock(FH, 2) or die "can't flock: $!";
# update file, then...
close(FH) or die "can't close: $!";
However I am able to start multiple instances of this application without any errors or limitations. I was under impression that flock would prevent this app from running multiple instances. Can someone advise what I am doing wrong here?
Thanks in advance