exit immediately if receiving second interrupt #224

This commit is contained in:
Jannes Höke 2016-04-18 19:21:57 +02:00
parent cb99341848
commit 0d9d5032ef

View file

@ -388,7 +388,12 @@ class Updater(object):
def signal_handler(self, signum, frame):
self.is_idle = False
if self.running:
self.stop()
else:
self.logger.warning('Exiting immediately!')
import os
os._exit(1)
def idle(self, stop_signals=(SIGINT, SIGTERM, SIGABRT)):
"""