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.
@raises etr.exception.AbortException after signal has been forwarded to subprocess.
◆ __init__()
def etr.tools.subprocess.SignalContextManager.__init__ |
( |
|
self, |
|
|
|
process, |
|
|
|
signals = (signal.SIGINT, signal.SIGTERM) |
|
) |
| |
◆ __enter__()
def etr.tools.subprocess.SignalContextManager.__enter__ |
( |
|
self | ) |
|
◆ __exit__()
def etr.tools.subprocess.SignalContextManager.__exit__ |
( |
|
self, |
|
|
|
type_, |
|
|
|
value, |
|
|
|
traceback |
|
) |
| |
◆ aborted
etr.tools.subprocess.SignalContextManager.aborted |
◆ original_handlers
etr.tools.subprocess.SignalContextManager.original_handlers |
◆ process
etr.tools.subprocess.SignalContextManager.process |
◆ signals
etr.tools.subprocess.SignalContextManager.signals |
The documentation for this class was generated from the following file: