module documentation
UNIX Process management.
Do NOT use this module directly - use reactor.spawnProcess() instead.
Maintainer: Itamar Shtull-Trauring
Class |
|
An operating-system Process. |
Class |
|
ProcessReader |
Class |
|
(Internal) Helper class to write into a Process's input pipe. |
Class |
|
An operating-system Process that uses PTY support. |
Function | reap |
Reap all registered processes. |
Function | register |
Register a process handler for the given pid, in case reapAllProcesses is called. |
Function | unregister |
Unregister a process handler previously registered with registerReapProcessHandler . |
Variable | detector |
Undocumented |
Variable | reap |
Undocumented |
Class | _ |
Base class for Process and PTYProcess. |
Class | _ |
This class contains the logic necessary to decide which of the available system techniques should be used to detect the open file descriptors for the current process. The chosen technique gets monkey-patched into the _listOpenFDs method of this class so that the detection only needs to occur once. |
Function | _get |
Get the file_actions parameter for posix_spawn based on the parameters describing the current process state. |
Function | _list |
Use the global detector object to figure out which FD implementation to use. |
Variable | _PS |
Undocumented |
Variable | _PS |
Undocumented |
Register a process handler for the given pid, in case reapAllProcesses
is called.
Parameters | |
pid | the pid of the process. |
process | a process handler. |
def _getFileActions(fdState:
List[ Tuple[ int, bool]]
, childToParentFD: Dict[ int, int]
, doClose: int
, doDup2: int
) -> List[ Tuple[ int, ...]]
:
(source)
¶
Get the file_actions parameter for posix_spawn based on the parameters describing the current process state.
Parameters | |
fdList[ | A list of 2-tuples of (file descriptor, close-on-exec flag). |
childDict[ | Undocumented |
doint | the integer to use for the 'close' instruction |
doint | the integer to use for the 'dup2' instruction |
Returns | |
List[ | Undocumented |