MCPcopy
hub / github.com/shadowsocks/shadowsocks / child_handler

Function child_handler

shadowsocks/server.py:78–81  ·  view source on GitHub ↗
(signum, _)

Source from the content-addressed store, hash-verified

76
77 def run_server():
78 def child_handler(signum, _):
79 logging.warn('received SIGQUIT, doing graceful shutting down..')
80 list(map(lambda s: s.close(next_tick=True),
81 tcp_servers + udp_servers))
82 signal.signal(getattr(signal, 'SIGQUIT', signal.SIGTERM),
83 child_handler)
84

Callers

nothing calls this directly

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected