Provides a context manager to be able to captue signals and forward them to a subprocess within a context manager scope.
More...
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.
def etr.tools.subprocess.SignalContextManager.__init__ |
( |
|
self, |
|
|
|
process, |
|
|
|
signals = (signal.SIGINT, signal.SIGTERM |
|
) |
| |
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 |
|
) |
| |
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: