Making sure script only runs once instance at a time.

Fredrik Lundh fredrik at pythonware.com
Fri Sep 29 13:13:56 EDT 2006


Paul Rubin wrote:

>> That's the same kind of principle as my posted snippet,  it doesn't
>> rely on the file's presence or absence as such.  It only cares when
>> the file exists *and* is held open by another process.    When the
>> process exits,  the lock ends without needing to clean up.
>>
>> It works on Windows, but that doesn't help the OP :)
> 
> Huh?  Fcntl is on linux.

I'm pretty sure "it" in tim's post refers to the his snippet, not yours.

</F>




More information about the Python-list mailing list