Home | Trees | Index | Help |
---|
Package pybaz :: Package backends :: Module 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 | |
---|---|
Fork/exec a process and and raises an exception if the program died with a signal or returned an error code other than expected. | |
Run the specified program and return a tuple of two items: 1. | |
Return a file object of /dev/null/ opened for writing. |
Variable Summary | |
---|---|
Logger |
logging = <logging.Logger instance at 0x4047baac>
|
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
|
nulldev
|
STDOUT
|
threadcount
|
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Thu Feb 2 14:21:53 2006 | http://epydoc.sf.net |