trepan/lib/sighandler.py
def set_signal_replacement(self, signum, handle):
        """A replacement for signal.signal which chains the signal behind
        the debugger's handler"""
        signame = lookup_signame(signum)
        if signame is None:
            self.dbgr.intf[-1].errmsg(("%s is not a signal number"
                                       " I know about.")  % signum)
            return False
        # Since the intent is to set a handler, we should pass this
        # signal on to the handler
        self.sigs[signame].pass_along = True
        if self.check_and_adjust_sighandler(signame, self.sigs):
            self.sigs[signame].old_handler = handle
            return True
        return False
def set_signal_replacement(self, signum, handle):
        signame = lookup_signame(signum)
        if signame is None:
            self.dbgr.intf[-1].errmsg(("%s is not a signal number"
                                       " I know about.")  % signum)
            return False
        # Since the intent is to set a handler, we should pass this
        # signal on to the handler
        self.sigs[signame].pass_along = True
        if self.check_and_adjust_sighandler(signame, self.sigs):
            self.sigs[signame].old_handler = handle
            return True
        return False
def set_signal_replacement ( self , signum , handle ) : signame = lookup_signame ( signum ) if signame is None : self . dbgr . intf [ - 1 ] . errmsg ( ( "%s is not a signal number" " I know about." ) % signum ) return False # Since the intent is to set a handler, we should pass this # signal on to the handler self . sigs [ signame ] . pass_along = True if self . check_and_adjust_sighandler ( signame , self . sigs ) : self . sigs [ signame ] . old_handler = handle return True return False
A replacement for signal.signal which chains the signal behind
        the debugger's handler
A replacement for signal . signal which chains the signal behind the debugger s handler