'Install the signal handlers for the Twisted event loop.'

def _handleSignals(self):

    try:
        import signal
    except ImportError:
        log.msg('Warning:    signal    module    unavailable    --    not    installing    signal    handlers.')
        return
    if (signal.getsignal(signal.SIGINT) == signal.default_int_handler):
        signal.signal(signal.SIGINT, self.sigInt)
    signal.signal(signal.SIGTERM, self.sigTerm)
    if hasattr(signal, 'SIGBREAK'):
        signal.signal(signal.SIGBREAK, self.sigBreak)
