Home | Trees | Index | Help |
---|
|
object --+ | Executable --+ | TimeoutExecutable --+ | RedirectedExecutable
|
|||
_ClosePipeEnd(self,
fd)
Close the file descriptor 'fd', which is one end of a pipe. |
|||
_CreatePipe(self)
Return a new pipe. |
|||
_DoParent(self)
Perform actions required in the parent after 'Spawn'. |
|||
_HandleChild(self)
Run in the parent process after the child has been created. |
|||
_InitializeChild(self)
Initialize the child process. |
|||
_InitializeParent(self)
Initialize the parent process. |
|||
_ReadStderr(self)
Read from the standard error pipe. |
|||
_ReadStdout(self)
Read from the standard output pipe. |
|||
_StderrPipe(self)
Return a pipe to which to redirect the standard input. |
|||
_StdinPipe(self)
Return a pipe to which to redirect the standard input. |
|||
_StdoutPipe(self)
Return a pipe to which to redirect the standard output. |
|||
_WriteStdin(self)
Write to the standard input pipe. |
|||
__CallUntilNone(self,
f,
attribute)
Call 'f' until 'self.attribute' is 'None'. |
|||
__UninheritableHandle(self,
handle)
Return a duplicate of a file handle that is not inheritable. |
|||
Inherited from Inherited from Inherited from Inherited from |
|
|||
Inherited from |
|
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'. |
|
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.
|
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.
|
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.
|
|
|
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. |
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. |
Write to the standard input pipe. This implementation writes no data and closes the pipe. |
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 | Index | Help |
---|
Generated by Epydoc 3.0alpha2 on Fri Sep 28 00:57:30 2007 | http://epydoc.sf.net |