Package pybaz :: Package backends :: Module forkexec
[frames | no frames]

Module pybaz.backends.forkexec

PyArch specific process spawning


Classes
ChildProcess Description of a child process, for error handling.
exec_safe_iter_stdout Iterator over the output of a child process.
PyArchSpawningStrategy  
StdoutType  
StringOutput Memory buffer storing a pipe output asynchronously.

Function Summary
  exec_safe(program, args, stdout, stdin, stderr, expected, chdir, logger)
Fork/exec a process and and raises an exception if the program died with a signal or returned an error code other than expected.
  exec_safe_status_stdout(program, args, expected, chdir, logger)
Run the specified program and return a tuple of two items: 1.
  getnull()
Return a file object of /dev/null/ opened for writing.

Variable Summary
Logger logging = <logging.Logger instance at 0x3ae7186c>
NoneType nulldev = None                                                                  
StdoutType STDOUT = pybaz.backends.forkexec.STDOUT
int threadcount = 0                                                                     

Function Details

exec_safe(program, args=[], stdout=None, stdin=None, stderr=None, expected=0, chdir=None, logger=None)

Fork/exec a process and and raises an exception if the program died with a signal or returned an error code other than expected. This function will always wait.

exec_safe_status_stdout(program, args=[], expected=0, chdir=None, logger=None)

Run the specified program and return a tuple of two items: 1. exit status of the program; 2. output of the program as a single string.

getnull()

Return a file object of /dev/null/ opened for writing.


Variable Details

logging

Type:
Logger
Value:
<logging.Logger instance at 0x3ae7186c>                                

nulldev

Type:
NoneType
Value:
None                                                                  

STDOUT

Type:
StdoutType
Value:
pybaz.backends.forkexec.STDOUT                                         

threadcount

Type:
int
Value:
0                                                                     

Generated by Epydoc 2.1 on Fri Jul 7 17:05:34 2006 http://epydoc.sf.net