Making sure script only runs once instance at a time.

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


Paul Rubin wrote:

> Don't use the presence or absence of a file as a lock.  Have the file
> there all the time, and have the app open it and use fcntl to get an
> exclusive kernel lock on the file descriptor.

doesn't work on all file systems, though...

</F>




More information about the Python-list mailing list