Handle SIGINT, SIGTERM, SIGUP and SIGQUIT

This commit is contained in:
miruka
2020-07-16 23:16:21 -04:00
parent aff5f45ca0
commit f316a24550
2 changed files with 18 additions and 2 deletions

View File

@@ -14,9 +14,9 @@ class.
"""
import asyncio
import atexit
import logging as log
import os
import pyotherside
import signal
import traceback
from concurrent.futures import Future
@@ -24,6 +24,8 @@ from operator import attrgetter
from threading import Thread
from typing import Coroutine, Sequence
import pyotherside
from .pyotherside_events import CoroutineDone, LoopException