Package _emerge :: Module SubProcess :: Class SubProcess
[hide private]

Class SubProcess

source code

                        object --+            
                                 |            
portage.util.SlotObject.SlotObject --+        
                                     |        
     AsynchronousTask.AsynchronousTask --+    
                                         |    
         AbstractPollTask.AbstractPollTask --+
                                             |
                                            SubProcess
Known Subclasses:

Instance Methods [hide private]
 
_poll(self) source code
 
_cancel(self)
Subclasses should implement this, as a template method to be called by AsynchronousTask.cancel().
source code
 
isAlive(self) source code
 
_wait(self) source code
 
_waitpid_loop(self) source code
 
_waitpid_cb(self, pid, condition, user_data=None) source code
 
_orphan_process_warn(self) source code
 
_unregister(self)
Unregister from the scheduler and close open files.
source code
 
_set_returncode(self, wait_retval)
Set the returncode in a manner compatible with subprocess.Popen.returncode: A negative value -N indicates that the child was terminated by signal N (Unix only).
source code

Inherited from AsynchronousTask.AsynchronousTask: addExitListener, addStartListener, cancel, poll, removeExitListener, removeStartListener, start, wait

Inherited from portage.util.SlotObject.SlotObject: __init__, copy

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  _cancel_timeout = 1000

Inherited from AbstractPollTask.AbstractPollTask (private): _bufsize

Properties [hide private]
  _dummy_pipe_fd
  _files
  _reg_id
  pid

Inherited from AbstractPollTask.AbstractPollTask: scheduler

Inherited from AsynchronousTask.AsynchronousTask: background, cancelled, returncode

Inherited from object: __class__

Method Details [hide private]

_poll(self)

source code 
Overrides: AsynchronousTask.AsynchronousTask._poll

_cancel(self)

source code 

Subclasses should implement this, as a template method to be called by AsynchronousTask.cancel().

Overrides: AsynchronousTask.AsynchronousTask._cancel
(inherited documentation)

isAlive(self)

source code 
Overrides: AsynchronousTask.AsynchronousTask.isAlive

_wait(self)

source code 
Overrides: AsynchronousTask.AsynchronousTask._wait

_unregister(self)

source code 

Unregister from the scheduler and close open files.

Overrides: AbstractPollTask.AbstractPollTask._unregister