t.i.process : module documentation

Part of twisted.internet View Source

UNIX Process management.

Do NOT use this module directly - use reactor.spawnProcess() instead.

Maintainer: Itamar Shtull-Trauring
Function reapAllProcesses Reap all registered processes.
Function registerReapProcessHandler Register a process handler for the given pid, in case reapAllProcesses is called.
Function unregisterReapProcessHandler Unregister a process handler previously registered with registerReapProcessHandler.
Function detectLinuxBrokenPipeBehavior On some Linux version, write-only pipe are detected as readable. This function is here to check if this bug is present or not.
Class ProcessWriter (Internal) Helper class to write into a Process's input pipe.
Class ProcessReader ProcessReader
Class Process An operating-system Process.
Class PTYProcess An operating-system Process that uses PTY support.
Class _BaseProcess Base class for Process and PTYProcess.
Function _listOpenFDs Return an iterable of potentially open file descriptors.
def reapAllProcesses(): (source)
Reap all registered processes.
def registerReapProcessHandler(pid, process): (source)
Register a process handler for the given pid, in case reapAllProcesses is called.
Parameterspidthe pid of the process.
processa process handler.
def unregisterReapProcessHandler(pid, process): (source)
Unregister a process handler previously registered with registerReapProcessHandler.
def detectLinuxBrokenPipeBehavior(): (source)

On some Linux version, write-only pipe are detected as readable. This function is here to check if this bug is present or not.

See ProcessWriter.doRead for a more detailed explanation.
def _listOpenFDs(): (source)

Return an iterable of potentially open file descriptors.

This function returns an iterable over the contents of /dev/fd or /proc/<pid>/fd, if they're available on the platform. If they're not, the returned value is the range [0, maxfds], where 'maxfds' is at least 256.
API Documentation for Twisted, generated by pydoctor at 2011-10-27 16:22:34.