fix PEP8
This commit is contained in:
parent
c668ddbc1b
commit
dda8f31bd3
1 changed files with 2 additions and 1 deletions
|
@ -71,7 +71,8 @@ def main():
|
|||
def child_handler(signum, _):
|
||||
logging.warn('received SIGQUIT, doing graceful shutting down..')
|
||||
map(lambda s: s.close(next_tick=True), tcp_servers + udp_servers)
|
||||
signal.signal(getattr(signal, 'SIGQUIT', signal.SIGTERM), child_handler)
|
||||
signal.signal(getattr(signal, 'SIGQUIT', signal.SIGTERM),
|
||||
child_handler)
|
||||
try:
|
||||
loop = eventloop.EventLoop()
|
||||
dns_resolver.add_to_loop(loop)
|
||||
|
|
Loading…
Reference in a new issue