listen/signal_handler.py
def set_handler(self, signals, handler=signal.SIG_DFL):
        """ Takes a list of signals and sets a handler for them """
        for sig in signals:
            self.log.debug("Creating handler for signal: {0}".format(sig))
            signal.signal(sig, handler)
def set_handler(self, signals, handler=signal.SIG_DFL):
        for sig in signals:
            self.log.debug("Creating handler for signal: {0}".format(sig))
            signal.signal(sig, handler)
def set_handler ( self , signals , handler = signal . SIG_DFL ) : for sig in signals : self . log . debug ( "Creating handler for signal: {0}" . format ( sig ) ) signal . signal ( sig , handler )
Takes a list of signals and sets a handler for them
Takes a list of signals and sets a handler for them