rad  2.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Public Attributes | List of all members
etr.tools.subprocess.SignalContextManager Class Reference

Provides a context manager to be able to captue signals and forward them to a subprocess within a context manager scope. More...

Public Member Functions

def __init__
 
def __enter__
 
def handler
 
def __exit__
 

Public Attributes

 process
 
 signals
 
 original_handlers
 
 aborted
 

Detailed Description

Provides a context manager to be able to captue signals and forward them to a subprocess within a context manager scope.

etr.exception.AbortException after signal has been forwarded to subprocess.

Constructor & Destructor Documentation

def etr.tools.subprocess.SignalContextManager.__init__ (   self,
  process,
  signals = (signal.SIGINT, signal.SIGTERM 
)

Member Function Documentation

def etr.tools.subprocess.SignalContextManager.__enter__ (   self)
def etr.tools.subprocess.SignalContextManager.__exit__ (   self,
  type_,
  value,
  traceback 
)
def etr.tools.subprocess.SignalContextManager.handler (   self,
  signum,
  frame 
)

Member Data Documentation

etr.tools.subprocess.SignalContextManager.aborted
etr.tools.subprocess.SignalContextManager.original_handlers
etr.tools.subprocess.SignalContextManager.process
etr.tools.subprocess.SignalContextManager.signals

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