class documentation

class DummyPIDFile(NonePIDFile): (source)

View In Hierarchy

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 isRunning 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 writeRunningPID Store the PID of the current process in this PID file.
Method _write Store a PID in this PID file.
def __enter__(self): (source)

Enter a context using this PIDFile.

Writes the PID file with the PID of the running process.

Returns
DummyPIDFileUndocumented
Raises
AlreadyRunningErrorA process corresponding to the PID in this PID file is already running.
def __exit__(self, excType, excValue, traceback): (source)

Exit a context using this PIDFile.

Removes the PID file.

Parameters
excType:Optional[Type[BaseException]]Undocumented
excValue:Optional[BaseException]Undocumented
traceback:Optional[TracebackType]Undocumented

Undocumented

Undocumented