Package svnmailer :: Module processes :: Class ProcessImpl
[show private | hide private]
[frames | no frames]

Class ProcessImpl

Popen3 --+
         |
        ProcessImpl


Spawn a child with certain attributes
Method Summary
  __init__(self, cmd, pstdin, pstdout, pstderr, detach)
Initialization
int wait(self)
Waits for child process to terminate.
    Inherited from Popen3
  poll(self)
Return the exit status of the child process if it has finished, or -1 if it hasn't finished yet.
  _run_child(self, cmd)

Instance Variable Summary
file fromchild: pipe from the child
file tochild: pipe to the child

Class Variable Summary
bool WINSHELL: Does the implementation use a shell on Win32?
    Inherited from Popen3
int sts = -1                                                                    

Method Details

__init__(self, cmd, pstdin, pstdout, pstderr, detach)
(Constructor)

Initialization
Parameters:
cmd - The command to execute (type must be suitable for the platform)
           (type=list or basestring)
pstdin - Pipe to stdin?
           (type=bool)
pstdout - Pipe from stdout?
           (type=bool)
pstderr - Pipe from stderr (on stdout channel)
           (type=bool)
detach - Detach the process? (evauluated on Win32 only)
           (type=bool)
Raises:
NotImplementedError - not implemented functions were activated
Overrides:
popen2.Popen3.__init__

wait(self)

Waits for child process to terminate.

The actual wait() call may happen when the last pipe handle is closed (in the dumb implementation).

Returns:
The exit status
           (type=int)
Overrides:
popen2.Popen3.wait

Instance Variable Details

fromchild

pipe from the child
Type:
file

tochild

pipe to the child
Type:
file

Class Variable Details

WINSHELL

Does the implementation use a shell on Win32?
Type:
bool
Value:
False                                                                  

Generated by Epydoc 2.0 on Sun Sep 25 20:49:06 2005 http://epydoc.sf.net