lint code
This commit is contained in:
parent
b409c18877
commit
0fd2f30911
5 changed files with 7 additions and 5 deletions
|
@ -70,7 +70,8 @@ def main():
|
|||
def run_server():
|
||||
def child_handler(signum, _):
|
||||
logging.warn('received SIGQUIT, doing graceful shutting down..')
|
||||
list(map(lambda s: s.close(next_tick=True), tcp_servers + udp_servers))
|
||||
list(map(lambda s: s.close(next_tick=True),
|
||||
tcp_servers + udp_servers))
|
||||
signal.signal(getattr(signal, 'SIGQUIT', signal.SIGTERM),
|
||||
child_handler)
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue