From 68ef5aa3aeadaf885c64dde546a5e53a38ca8ccf Mon Sep 17 00:00:00 2001 From: JS00000 Date: Wed, 12 Apr 2023 05:35:31 +0800 Subject: [PATCH] ctrl+c exit --- app.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app.py b/app.py index 81dae85..145b9c7 100644 --- a/app.py +++ b/app.py @@ -15,6 +15,7 @@ def sigterm_handler_wrap(_signo): conf().save_user_datas() if callable(old_handler): # check old_handler return old_handler(_signo, _stack_frame) + sys.exit(0) signal.signal(_signo, func) def run():