Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | Static Private Attributes
rocon_python_utils.system.popen.Popen Class Reference

Subprocess. More...

List of all members.

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__

Detailed Description

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).

Definition at line 21 of file popen.py.


Constructor & Destructor Documentation

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.

Definition at line 37 of file popen.py.


Member Function Documentation

Definition at line 66 of file popen.py.

def rocon_python_utils.system.popen.Popen._run_in_thread (   self,
  popen_args,
  preexec_fn,
  postexec_fn 
) [private]
  Worker function for the thread, creates the subprocess itself.

Definition at line 79 of file popen.py.

Definition at line 61 of file popen.py.

  @raise OSError if the process has already shut down.

Definition at line 71 of file popen.py.


Member Data Documentation

Initial value:
[
            'pid',
            '_proc',
            '_thread',
            '_external_preexec_fn',
            '_shell',
            '_env',
            'terminate'
        ]

Definition at line 27 of file popen.py.

Definition at line 51 of file popen.py.

Definition at line 51 of file popen.py.

Definition at line 51 of file popen.py.

Definition at line 51 of file popen.py.

Definition at line 51 of file popen.py.

Definition at line 51 of file popen.py.


The documentation for this class was generated from the following file:


rocon_python_utils
Author(s): Daniel Stonier
autogenerated on Fri May 2 2014 10:35:39