Browse Source

ctrl+c exit

master
JS00000 1 year ago
parent
commit
68ef5aa3ae
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      app.py

+ 1
- 0
app.py View File

@@ -15,6 +15,7 @@ def sigterm_handler_wrap(_signo):
conf().save_user_datas() conf().save_user_datas()
if callable(old_handler): # check old_handler if callable(old_handler): # check old_handler
return old_handler(_signo, _stack_frame) return old_handler(_signo, _stack_frame)
sys.exit(0)
signal.signal(_signo, func) signal.signal(_signo, func)


def run(): def run():


Loading…
Cancel
Save