

def stop(self, signum, frame):
    'This method handles SIGINT and SIGTERM signals. '
    self.logger.info(('Stopping due to signal #%d' % signum))
    raise KeyboardInterrupt

dataset/ETHPy150Open comodit/synapse-agent/synapse/dispatcher.py Dispatcher.stop/original