[mplspm]: Why can't I get flock($fh,LOCK_EX) to work?

Dave Worden dave.worden at veritas.com
Tue Oct 23 09:31:15 CDT 2001


Mark,

You're correct. Overkill and not the way I would do it do it today. The mode
thing got me when I originally was working with flock()ish stuff too ---
*8^)
Regards,
--djw

-----Original Message-----
From: Mark Conty [mailto:Mark_Conty at cargill.com]
Sent: Tuesday, October 23, 2001 7:08 AM
To: mpls at pm.org
Subject: Re: [mplspm]: Why can't I get flock($fh,LOCK_EX) to work?


Ohh, duhh!  If you're going to establish an exclusive (i.e., write) lock,
it works a *lot* better if you open the desired file in WRITE mode!

Sheesh...  Thanks anyway.

(Dave, thanks for your note -- seems, though, that including the
$flock_struct
is kinda overkill, unless your program used those flags somewhere else.)

Can't make it Thursday night -- bell choir practice.  Maybe next time,
tho'...
-- 
Mark Conty
APS/NAGO IT Group
Server Team - MS 64
952-984-0503


--------------------------------------------------
Minneapolis Perl Mongers mailing list

To unsubscribe, send mail to majordomo at pm.org
with "unsubscribe mpls" in the body of the message.


--------------------------------------------------
Minneapolis Perl Mongers mailing list

To unsubscribe, send mail to majordomo at pm.org
with "unsubscribe mpls" in the body of the message.



More information about the Mpls-pm mailing list