MCPcopy
hub / github.com/shadowsocks/shadowsocks / handler

Function handler

shadowsocks/local.py:54–57  ·  view source on GitHub ↗
(signum, _)

Source from the content-addressed store, hash-verified

52 udp_server.add_to_loop(loop)
53
54 def handler(signum, _):
55 logging.warn('received SIGQUIT, doing graceful shutting down..')
56 tcp_server.close(next_tick=True)
57 udp_server.close(next_tick=True)
58 signal.signal(getattr(signal, 'SIGQUIT', signal.SIGTERM), handler)
59
60 def int_handler(signum, _):

Callers

nothing calls this directly

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected