>>>>> "Francesco" == Francesco Scaglioni <[EMAIL PROTECTED]> writes:

Francesco>     flock WRITE_COMMENT, LOCK_EX || die "cannot lock comment file: $!";

This is not likely doing what you expect.

$ perl -MO=Deparse,-p -e 'use Fcntl qw(:flock); flock WRITE_COMMENT, LOCK_EX || die 
"cannot lock comment file: $!";'
-e syntax OK
sub LOCK_SH {}
sub LOCK_EX {}
sub LOCK_UN {}
sub LOCK_NB {}
flock(WRITE_COMMENT, (LOCK_EX() || die("cannot lock comment file: $!")));

Note the parentheses.  The LOCK_EX is part of the "or die", but not
the flock.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[EMAIL PROTECTED]> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to