Subprocess. More...
Public Member Functions | |
def | __init__ |
def | send_signal |
def | terminate |
Public Attributes | |
pid | |
Private Member Functions | |
def | _preexec_fn |
def | _run_in_thread |
Private Attributes | |
_env | |
_external_preexec_fn | |
_proc | |
_shell | |
_thread | |
Static Private Attributes | |
list | __slots__ |
Subprocess.
Use this if you want to attach a postexec function to popen (which is not supported by popen at all). It also defaults setting and terminating whole process groups (something we do quite often in ros).
def rocon_python_utils.system.popen.Popen.__init__ | ( | self, | |
popen_args, | |||
shell = False , |
|||
preexec_fn = None , |
|||
postexec_fn = None , |
|||
env = None |
|||
) |
@param popen_args : list/tuple of usual popen args @type list/tuple @param shell : same as the shell argument passed to subprocess.Popen @type bool @param preexec_fn : usual popen pre-exec function @type method with no args @param postexec_fn : the callback which we support for postexec. @type method with no args :param env dict: a customised environment to run the process in.
def rocon_python_utils.system.popen.Popen._preexec_fn | ( | self | ) | [private] |
def rocon_python_utils.system.popen.Popen._run_in_thread | ( | self, | |
popen_args, | |||
preexec_fn, | |||
postexec_fn | |||
) | [private] |
def rocon_python_utils.system.popen.Popen.send_signal | ( | self, | |
sig | |||
) |
def rocon_python_utils.system.popen.Popen.terminate | ( | self | ) |
list rocon_python_utils::system::popen.Popen::__slots__ [static, private] |