An incomplete and fake IProcessTransport implementation for testing how ProcessMonitor behaves when its monitored processes exit.

Method __init__ Undocumented
Method signalProcess No summary
Method processEnded Deliver the process ended event to self.proto.
Instance Variable _terminationDelay the delay in seconds after which the DummyProcess will appear to exit when it receives a TERM signal
_terminationDelay =
the delay in seconds after which the DummyProcess will appear to exit when it receives a TERM signal
def __init__(self, reactor, executable, args, environment, path, proto, uid=None, gid=None, usePTY=0, childFDs=None):
Undocumented
def signalProcess(self, signalID):

A partial implementation of signalProcess which can only handle TERM and KILL signals.

  • When a TERM signal is given, the dummy process will appear to exit after DummyProcess._terminationDelay seconds with exit code 0
  • When a KILL signal is given, the dummy process will appear to exit immediately with exit code 1.
ParameterssignalIDThe signal name or number to be issued to the process. (type: str)
def processEnded(self, status):

Deliver the process ended event to self.proto.

API Documentation for twisted, generated by pydoctor at 2020-03-25 17:34:30.