Vega strike Python Modules doc  0.5.1
Documentation of the " Modules " folder of Vega strike
 All Data Structures Namespaces Files Functions Variables
Popen4 Class Reference
Inheritance diagram for Popen4:
Popen3

Public Member Functions

def __init__
 
- Public Member Functions inherited from Popen3
def __init__
 
def poll
 
def wait
 

Data Fields

 pid
 
 tochild
 
 fromchild
 
- Data Fields inherited from Popen3
 pid
 
 tochild
 
 fromchild
 
 childerr
 
 sts
 

Static Public Attributes

 childerr = None
 
- Static Public Attributes inherited from Popen3
int sts = -1
 

Detailed Description

Definition at line 94 of file popen2.py.

Constructor & Destructor Documentation

def __init__ (   self,
  cmd,
  bufsize = -1 
)

Definition at line 97 of file popen2.py.

97 
98  def __init__(self, cmd, bufsize=-1):
99  _cleanup()
100  p2cread, p2cwrite = os.pipe()
101  c2pread, c2pwrite = os.pipe()
102  self.pid = os.fork()
103  if self.pid == 0:
104  # Child
105  os.dup2(p2cread, 0)
106  os.dup2(c2pwrite, 1)
107  os.dup2(c2pwrite, 2)
108  self._run_child(cmd)
109  os.close(p2cread)
110  self.tochild = os.fdopen(p2cwrite, 'w', bufsize)
111  os.close(c2pwrite)
112  self.fromchild = os.fdopen(c2pread, 'r', bufsize)
113  _active.append(self)
114 

Field Documentation

childerr = None
static

Definition at line 95 of file popen2.py.

fromchild

Definition at line 111 of file popen2.py.

pid

Definition at line 101 of file popen2.py.

tochild

Definition at line 109 of file popen2.py.


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