Verified Commit bde4b55a authored by Andrey Vertiprahov's avatar Andrey Vertiprahov
Browse files

Not setup signal.SIGHUP hanler for NT system.

parent 0471fc8c
......@@ -258,7 +258,11 @@ class BaseService(object):
Set up signal handlers
"""
signal.signal(signal.SIGTERM, self.on_SIGTERM)
signal.signal(signal.SIGHUP, self.on_SIGHUP)
if os.name == "nt":
# Ctrl+C. For cancel traced Ctrl + Break
signal.signal(signal.SIGINT, self.on_SIGTERM)
else:
signal.signal(signal.SIGHUP, self.on_SIGHUP)
def set_proc_title(self):
"""
......
Supports Markdown
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