Home | Trees | Indices | Help |
---|
|
object --+ | Executable --+ | TimeoutExecutable --+ | RedirectedExecutable
A 'RedirectedExecutable' redirects the standard I/O streams.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from Inherited from |
|
|||
Inherited from |
|
Initialize the parent process. Before spawning the child, this method is invoked to give the parent a chance to initialize itself. returns -- Under Windows, a 'PySTARTUPINFO' structure explaining how the child should be initialized. On other systems, the return value is ignored.
|
Initialize the child process. After 'fork' is called this method is invoked to give the child a chance to initialize itself. '_InitializeParent' will already have been called in the parent process. This method is not used under Windows.
|
Run in the parent process after the child has been created. The child process has been spawned; its PID is avialable via '_GetChildPID'. Take any actions in the parent that are required now that the child exists. Derived class versions must call this method.
|
Perform actions required in the parent after 'Spawn'.
|
Write to the standard input pipe. This implementation writes no data and closes the pipe. |
Return a pipe to which to redirect the standard input. returns -- A pipe, or 'None' if the standard input should be closed in the child. |
Return a pipe to which to redirect the standard output. returns -- A pipe, or 'None' if the standard output should be closed in the child. |
Return a pipe to which to redirect the standard input. returns -- A pipe, or 'None'. If 'None' is returned, but '_StdoutPipe' returns a pipe, then the standard error and standard input will both be redirected to that pipe. However, if '_StdoutPipe' also returns 'None', then the standard error will be closed in the child. |
Close the file descriptor 'fd', which is one end of a pipe. 'fd' -- Under UNIX, a file descriptor. Under Windows, a handle. |
Return a new pipe. returns -- A tuple (under UNIX) or list (under Windows) consisting of the file descriptors (UNIX) or handles (Windows) for the read end and write end of a new pipe. The pipe is inheritable by child processes. On UNIX the fds will not be inherited across 'exec'. |
Call 'f' until 'self.attribute' is 'None'. 'f' -- A callable. 'attribute' -- A string giving the name of an attribute. |
Return a duplicate of a file handle that is not inheritable. 'handle' -- A file handle. returns -- A new handle that is a non-inheritable duplicate of the 'handle'. This method should only be used under Windows. |
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Fri Dec 23 12:30:40 2011 | http://epydoc.sourceforge.net |