def manage_signal(self, sig, frame):
        """Manage signals caught by the process
        Specific behavior for the arbiter when it receives a sigkill or sigterm

        :param sig: signal caught by the process
        :type sig: str
        :param frame: current stack frame
        :type frame:
        :return: None
        """
        # Request the arbiter to stop
        if sig in [signal.SIGINT, signal.SIGTERM]:
            logger.info("received a signal: %s", SIGNALS_TO_NAMES_DICT[sig])
            self.kill_request = True
            self.kill_timestamp = time.time()
            logger.info("request to stop in progress")
        else:
            Daemon.manage_signal(self, sig, frame)
def manage_signal ( self , sig , frame ) : if sig in [ signal . SIGINT , signal . SIGTERM ] : logger . info ( "received a signal: %s" , SIGNALS_TO_NAMES_DICT [ sig ] ) self . kill_request = True self . kill_timestamp = time . time ( ) logger . info ( "request to stop in progress" ) else : Daemon . manage_signal ( self , sig , frame )
Manage signals caught by the process
        Specific behavior for the arbiter when it receives a sigkill or sigterm

        :param sig: signal caught by the process
        :type sig: str
        :param frame: current stack frame
        :type frame:
        :return: None