On 27 Dec 2000, at 10:11, Mark Murray wrote:

> > Any ideas on how to do this?  Any suggestions on the process?
> 
> Simple lock (like flock(3)) in the perl script. Lock some ${FILE},
> and if you can't get the lock, die. The file should contain the PID
> of the process that holds the lock, so that a cleanerd can kill
> stuck processes, or so that the lock can be blown away if needed.
> 
> Works like a charm.

Thanks Mark.  But what part of the solution does flock solve?

I'm not sure if my lack of comprehension stems from my initial 
description being inadequete or my knowledge being too narrow.

--
Dan Langille
The FreeBSD Diary - http://freebsddiary.org/
       FreshPorts - http://freshports.org/
     NZ Broadband - http://unixathome.org/broadband/


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to