Go to the latest version of this document.

# ``twisted`.`internet`.`_signals`.`SignalHandling``

class documentation

`class SignalHandling(Protocol): (source)`

View In Hierarchy

The `SignalHandling` protocol enables customizable signal-handling behaviors for reactors.

A value that conforms to `SignalHandling` has install and uninstall hooks that are called by a reactor at the correct times to have the (typically) process-global effects necessary for dealing with signals.

Method | `install` | Install the signal handlers.
Method | `uninstall` | Restore signal handlers to their original state.

def install(self): (source)

Install the signal handlers.

def uninstall(self): (source)

Restore signal handlers to their original state.