class documentation
class DummyProcess: (source)
An incomplete and fake IProcessTransport
implementation for testing how ProcessMonitor
behaves when its monitored processes exit.
Method | __init__ |
Undocumented |
Method | process |
Deliver the process ended event to self.proto. |
Method | signal |
A partial implementation of signalProcess which can only handle TERM and KILL signals. |
Instance Variable | pid |
Undocumented |
Instance Variable | proto |
Undocumented |
Instance Variable | _args |
Undocumented |
Instance Variable | _child |
Undocumented |
Instance Variable | _environment |
Undocumented |
Instance Variable | _executable |
Undocumented |
Instance Variable | _gid |
Undocumented |
Instance Variable | _path |
Undocumented |
Instance Variable | _reactor |
Undocumented |
Instance Variable | _signal |
Undocumented |
Instance Variable | _termination |
the delay in seconds after which the DummyProcess will appear to exit when it receives a TERM signal |
Instance Variable | _uid |
Undocumented |
Instance Variable | _use |
Undocumented |
def __init__(self, reactor, executable, args, environment, path, proto, uid=None, gid=None, usePTY=0, childFDs=None):
(source)
¶
Undocumented
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.
Parameters | |
signal | The signal name or number to be issued to the process. |