Part of twisted.internet.process View Source View In Hierarchy
Known subclasses: twisted.internet.process.Process, twisted.internet.process.PTYProcess
Method | reapProcess | Try to reap a process (without blocking) via waitpid. |
Method | signalProcess | No summary |
Method | maybeCallProcessEnded | Call processEnded on protocol after final cleanup. |
Method | __repr__ | String representation of a process. |
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 Ephemeral:
Method | __getstate__ | Undocumented |
Method | __setstate__ | 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.)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
Parameters | signalID | (type: str or int
) |
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.
|