def manage_signal(self, sig, frame):  # pylint: disable=unused-argument
        """Generic function to handle signals

        Only called when the module process received SIGINT or SIGKILL.

        Set interrupted attribute to True, self.process to None and returns

        :param sig: signal sent
        :type sig:
        :param frame: frame before catching signal
        :type frame:
        :return: None
        """
        logger.info("received a signal: %s", SIGNALS_TO_NAMES_DICT[sig])

        if sig == signal.SIGHUP:
            # if SIGHUP, reload configuration in arbiter
            logger.info("Modules are not able to reload their configuration. "
                        "Stopping the module...")

        logger.info("Request to stop the module")
        self.interrupted = True
Generic function to handle signals

        Only called when the module process received SIGINT or SIGKILL.

        Set interrupted attribute to True, self.process to None and returns

        :param sig: signal sent
        :type sig:
        :param frame: frame before catching signal
        :type frame:
        :return: None