You are using flock(FH, LOCK_EX) which will wait until the lock is available. Easy to see if you put a print before and after the flock.
Add the non-blocking flag to get an instantaneous read on the lock state: flock(FH, LOCK_EX|LOCK_NB). Import the constants with use Fcntl qw(:flock);.
In reply to Re: flock on Ubuntu 9.10
by gmargo
in thread SOLVED [flock on Ubuntu 9.10]
by poctob
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |