Gorby has asked for the wisdom of the Perl Monks concerning the following question:
open(SEM, ">semaphore_file") || die "Cannot create semaphore $!"; flock(SEM, LOCK_EX) || die "Lock failed: $!"; #some code close(SEM);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: flock LOCK_EX
by Zaxo (Archbishop) on Jan 13, 2004 at 07:37 UTC | |
by Gorby (Monk) on Jan 13, 2004 at 08:13 UTC |