Commit 5838026b authored by Jalin's avatar Jalin

Merge branch 'master' of github.com:pjialin/py12306

parents a0bdc4ca 3b15f260
......@@ -56,9 +56,10 @@ class App:
def register_sign(self):
is_windows = os.name == 'nt'
signs = [signal.SIGINT, signal.SIGHUP, signal.SIGTERM]
if is_windows:
signs = [signal.SIGINT, signal.SIGTERM]
else:
signs = [signal.SIGINT, signal.SIGHUP, signal.SIGTERM]
for sign in signs:
signal.signal(sign, self.handler_exit)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment