Signals: Split signal handler between sync and async

Asyncio requires a closure of the event loop while sync can use SystemExit
to kill the program.

Signed-off-by: kingbri <bdashore3@proton.me>
This commit is contained in:
kingbri 2024-09-19 23:31:29 -04:00
parent b4cda78bcc
commit d5e4285346
2 changed files with 13 additions and 6 deletions

View file

@ -5,6 +5,7 @@ import os
import pathlib
import platform
import signal
import time
from loguru import logger
from typing import Optional