Methods
|
|
|
|
_ClosePipeEnd
|
_ClosePipeEnd ( self, fd )
Close the file descriptor fd , which is one end of a pipe.
-
fd
- Under UNIX, a file descriptor. Under Windows, a
handle.
|
|
_CreatePipe
|
_CreatePipe ( self )
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 .
|
|
_DoParent
|
_DoParent ( self )
|
|
_HandleChild
|
_HandleChild ( self )
|
|
_InitializeChild
|
_InitializeChild ( self )
|
|
_InitializeParent
|
_InitializeParent ( self )
|
|
_ReadStderr
|
_ReadStderr ( self )
Read from the standard error pipe.
|
|
_ReadStdout
|
_ReadStdout ( self )
Read from the standard output pipe.
|
|
_StderrPipe
|
_StderrPipe ( self )
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.
|
|
_StdinPipe
|
_StdinPipe ( self )
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.
|
|
_StdoutPipe
|
_StdoutPipe ( self )
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.
|
|
_WriteStdin
|
_WriteStdin ( self )
Write to the standard input pipe.
This implementation writes no data and closes the pipe.
|
|
__CallUntilNone
|
__CallUntilNone (
self,
f,
attribute,
)
Call f until self.attribute is None .
-
f
- A callable.
-
attribute
- A string giving the name of an attribute.
|
|
__UninheritableHandle
|
__UninheritableHandle ( self, handle )
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.
|