(self, sig, frame)
Internal SIGINT handler.  Minimal code here.
Internal SIGINT handler.  Minimal code here.
Internal SIGINT handler . Minimal code here .
def hook_sigint(self, sig, frame):
        "Internal SIGINT handler.  Minimal code here."
        self.stop()
        t = time.time()
        if t - self.last_sigint < 1:
            self.log.warning("Double ^C, fast exit")
            sys.exit(1)
        self.last_sigint = t
def hook_sigint ( self , sig , frame ) : self . stop ( ) t = time . time ( ) if t - self . last_sigint < 1 : self . log . warning ( "Double ^C, fast exit" ) sys . exit ( 1 ) self . last_sigint = t