Commit 8e7bda32 authored by Dmitry Volodin's avatar Dmitry Volodin
Browse files

Merge branch 'patch-avs-nt-signal-handler' into 'master'

Not setup signal.SIGHUP hanler for NT system.

See merge request noc/noc!6267
parents b6c3f6ca bde4b55a
Pipeline #36149 failed with stages
in 27 minutes and 28 seconds
......@@ -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