class _BaseProcess(BaseProcess): (source)
Known subclasses: twisted.internet.process.Process
, twisted.internet.process.PTYProcess
Method | __repr__ |
String representation of a process. |
Method | reapProcess |
Try to reap a process (without blocking) via waitpid. |
Method | signalProcess |
No summary |
Instance Variable | pid |
Undocumented |
Instance Variable | status |
Undocumented |
Method | _execChild |
The exec() which is done in the forked child. |
Method | _fork |
Fork and then exec sub-process. |
Method | _getReason |
Undocumented |
Method | _resetSignalDisposition |
Undocumented |
Method | _setupChild |
Setup the child process. Override in subclasses. |
Inherited from BaseProcess
:
Method | __init__ |
Undocumented |
Method | maybeCallProcessEnded |
Call processEnded on protocol after final cleanup. |
Method | processEnded |
This is called when the child terminates. |
Class Variable | lostProcess |
Undocumented |
Instance Variable | proto |
Undocumented |
Method | _callProcessExited |
Undocumented |
Try to reap a process (without blocking) via waitpid.
This is called when sigchild is caught or a Process object loses its "connection" (stdout is closed) This ought to result in reaping all zombie processes, since it will be called twice as often as it needs to be.
(Unfortunately, this is a slightly experimental approach, since UNIX has no way to be really sure that your process is going to go away w/o blocking. I don't want to block.)
Parameters | |
signalID:str or int | Undocumented |
Parameters | |
path:bytes or unicode | the path where to run the new process. |
uid:int | if defined, the uid used to run the new process. |
gid:int | if defined, the gid used to run the new process. |
executable:str | the executable to run in a new process. |
args:list . | arguments used to create the new process. |
environment:dict . | environment used for the new process. |
**kwargs | keyword arguments to _setupChild method. |