ops forgot to check signum
This commit is contained in:
parent
021d35be6a
commit
2acabbfb8d
1 changed files with 8 additions and 7 deletions
|
@ -22,7 +22,8 @@ class Runnable:
|
||||||
DONE = asyncio.Event()
|
DONE = asyncio.Event()
|
||||||
FORCE_QUIT = asyncio.Event()
|
FORCE_QUIT = asyncio.Event()
|
||||||
|
|
||||||
def signal_handler():
|
def signal_handler(signum, __):
|
||||||
|
if signum == SIGINT:
|
||||||
if DONE.is_set():
|
if DONE.is_set():
|
||||||
logging.info("Received SIGINT, terminating")
|
logging.info("Received SIGINT, terminating")
|
||||||
FORCE_QUIT.set()
|
FORCE_QUIT.set()
|
||||||
|
|
Loading…
Reference in a new issue