class documentation
class DummyPIDFile(NonePIDFile): (source)
Stub for PIDFile
.
Tracks context manager entry/exit without doing anything.
Method | __enter__ |
Enter a context using this PIDFile. |
Method | __exit__ |
Exit a context using this PIDFile. |
Method | __init__ |
Undocumented |
Instance Variable | entered |
Undocumented |
Instance Variable | exited |
Undocumented |
Inherited from NonePIDFile
:
Method | is |
Determine whether there is a running process corresponding to the PID in this PID file. |
Method | read |
Read the process ID stored in this PID file. |
Method | remove |
Remove this PID file. |
Method | write |
Store the PID of the current process in this PID file. |
Method | _write |
Store a PID in this PID file. |
Enter a context using this PIDFile.
Writes the PID file with the PID of the running process.
Returns | |
DummyPIDFile | Undocumented |
Raises | |
AlreadyRunningError | A process corresponding to the PID in this PID file is already running. |
Exit a context using this PIDFile.
Removes the PID file.
Parameters | |
excOptional[ | Undocumented |
excOptional[ | Undocumented |
traceback:Optional[ | Undocumented |