philou has asked for the wisdom of the Perl Monks concerning the following question:
A while after...Process 1: open FH, ">lock" or die "Cannot >lock"; flock( FH, LOCK_SH );
This while cause Process 2 to wait for Process 1 to unlock FH on Linux, but not on HPUX and SunOS. Using a LOCK_EX instead of LOCK_SH cause Process 2 to wait on HPUX and SunOS which is the expected result.Process 2: open FH, ">lock" or die "Cannot >lock"; flock( FH, LOCK_EX );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(tye)Re: flock on differents OSes
by tye (Sage) on Dec 20, 2001 at 22:15 UTC | |
|
Re: flock on differents OSes
by virtualsue (Vicar) on Feb 11, 2002 at 13:46 UTC | |
|
Re: flock on differents OSes
by gellyfish (Monsignor) on Feb 11, 2002 at 11:34 UTC |