diff --git a/softioc/asyncio_dispatcher.py b/softioc/asyncio_dispatcher.py index 78b84b2d..daf5888d 100644 --- a/softioc/asyncio_dispatcher.py +++ b/softioc/asyncio_dispatcher.py @@ -60,6 +60,9 @@ def signal_handler(signum, frame): stop_event.wait() + signal.signal(signal.SIGINT, signal.SIG_DFL) + signal.signal(signal.SIGTERM, signal.SIG_DFL) + async def __inloop(self, started): self.loop = asyncio.get_running_loop() self.__interrupt = asyncio.Event()