twisted.internet.process._BaseProcess(BaseProcess, object)
class documentationtwisted.internet.process
View Source
(View In Hierarchy)
Known subclasses: twisted.internet.process.Process, twisted.internet.process.PTYProcess
Base class for Process and PTYProcess.
Method | reapProcess | Try to reap a process (without blocking) via waitpid. |
Method | signalProcess | No summary |
Method | __repr__ | String representation of a process. |
Method | _getReason | Undocumented |
Method | _resetSignalDisposition | Undocumented |
Method | _fork | Fork and then exec sub-process. |
Method | _setupChild | Setup the child process. Override in subclasses. |
Method | _execChild | The exec() which is done in the forked child. |
Inherited from BaseProcess:
Method | __init__ | Undocumented |
Method | processEnded | This is called when the child terminates. |
Method | maybeCallProcessEnded | Call processEnded on protocol after final cleanup. |
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.)
Send the given signal signalID
to the process. It'll
translate a few signals ('HUP', 'STOP', 'INT', 'KILL', 'TERM') from a
string representation to its int value, otherwise it'll pass directly the
value provided
Fork and then exec sub-process.
Parameters | path | the path where to run the new process. (type: str ) |
uid | if defined, the uid used to run the new process. (type: int ) | |
gid | if defined, the gid used to run the new process. (type: int ) | |
executable | the executable to run in a new process. (type: str ) | |
args | arguments used to create the new process. (type: list .) | |
environment | environment used for the new process. (type: dict .) | |
kwargs | keyword arguments to _setupChild
method. |
The exec() which is done in the forked child.