t.i.b._SignalReactorMixin(object) : class documentation

Part of twisted.internet.base View Source View In Hierarchy

Known subclasses: twisted.internet.iocpreactor.reactor.IOCPReactor, twisted.internet.posixbase.PosixReactorBase

Private mixin to manage signals: it installs signal handlers at start time, and define run method.

It can only be used mixed in with ReactorBase, and has to be defined first in the inheritance (so that method resolution order finds startRunning first).
Instance Variables_installSignalHandlersA flag which indicates whether any signal handlers will be installed during startup. This includes handlers for SIGCHLD to monitor child processes, and SIGINT, SIGTERM, and SIGBREAK to stop the reactor. (type: bool )
Method startRunning Extend the base implementation in order to remember whether signal handlers should be installed later.
Method run Undocumented
Method mainLoop Undocumented
Method _handleSignals Install the signal handlers for the Twisted event loop.
Method _reallyStartRunning Extend the base implementation by also installing signal handlers, if self._installSignalHandlers is true.
def _handleSignals(self): (source)
Install the signal handlers for the Twisted event loop.
def startRunning(self, installSignalHandlers=True): (source)
Extend the base implementation in order to remember whether signal handlers should be installed later.
ParametersinstallSignalHandlersA flag which, if set, indicates that handlers for a number of (implementation-defined) signals should be installed during startup. (type: bool )
def _reallyStartRunning(self): (source)
Extend the base implementation by also installing signal handlers, if self._installSignalHandlers is true.
def run(self, installSignalHandlers=True): (source)
Undocumented
def mainLoop(self): (source)
Undocumented
API Documentation for Twisted, generated by pydoctor at 2011-10-27 16:17:34.