Provides a context manager to be able to captue signals and forward them to a subprocess within a context manager scope.
More...
|
| def | __init__ (self, process, signals=(signal.SIGINT, signal.SIGTERM)) |
| |
| def | __enter__ (self) |
| |
| def | __exit__ (self, type_, value, traceback) |
| |
| def | __init__ (self, process, signals=(signal.SIGINT, signal.SIGTERM)) |
| |
| def | __enter__ (self) |
| |
| def | __exit__ (self, type_, value, traceback) |
| |
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__() [1/2]
| def etr.tools.subprocess.SignalContextManager.__init__ |
( |
|
self, |
|
|
|
process, |
|
|
|
signals = (signal.SIGINT, signal.SIGTERM) |
|
) |
| |
◆ __init__() [2/2]
| def etr.tools.subprocess.SignalContextManager.__init__ |
( |
|
self, |
|
|
|
process, |
|
|
|
signals = (signal.SIGINT, signal.SIGTERM) |
|
) |
| |
◆ __enter__() [1/2]
| def etr.tools.subprocess.SignalContextManager.__enter__ |
( |
|
self | ) |
|
◆ __enter__() [2/2]
| def etr.tools.subprocess.SignalContextManager.__enter__ |
( |
|
self | ) |
|
◆ __exit__() [1/2]
| def etr.tools.subprocess.SignalContextManager.__exit__ |
( |
|
self, |
|
|
|
type_, |
|
|
|
value, |
|
|
|
traceback |
|
) |
| |
◆ __exit__() [2/2]
| 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: