[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] flock() command
- Subject: Re: [cobalt-users] flock() command
- From: "Brian E. Lozier" <brian@xxxxxxxxxxxx>
- Date: Thu Dec 2 15:53:49 1999
Actually, I'm a complete idiot... I just looked at the code again:
$lockresult = eval("flock(FILE,6)");
and you do have that flock in there, I missed it. See, there's another way
I've seen that looks similar but doesn't use flock... So you were correct
and I made a mistake.
Later,
Brian
----- Original Message -----
From: Dan <dan@xxxxxxxxxxxxx>
To: <cobalt-users@xxxxxxxxxxxxxxx>
Sent: Thursday, December 02, 1999 2:39 PM
Subject: RE: [cobalt-users] flock() command
>
> Actually, Dan, that's not really flock - that's a better file locking
> mechanism in my opinion... Flock would look something like:
>
> open(FILE,"file.html");
> flock(FILE);
> print FILE "this text to file";
> close(FILE);
>
> It's a unix locking dealie...
>
Thanks! I just did a quick search on my .pl files for "flock" and pasted
that in.
--
Dan Kriwitsky
_______________________________________________
cobalt-users mailing list
cobalt-users@xxxxxxxxxxxxxxx
http://list.cobalt.com/mailman/listinfo/cobalt-users