Home | Trees | Indices | Help |
|
---|
|
A simple module for acquiring pidfile locks (e.g., for use by daemons).
Copyright (C) 2010 by Peter F. Couvares, Syracuse University mailto: pfcouvar@syr.edu
|
|||
|
|||
|
|
|||
__package__ =
|
|
Confirm that the given lockfile contains our pid. Should be entirely unecessary, but paranoia always served me well. |
Tries to write a lockfile containing the current pid. Excepts if the lockfile already contains the pid of a running process. Although this should prevent a lock from being granted twice, it can theoretically deny a lock unjustly in the unlikely event that the original process is gone but another unrelated process has been assigned the same pid by the OS. |
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Tue Dec 12 00:34:18 2017 | http://epydoc.sourceforge.net |