use SIGINT instead in tests

Conflicts:
	tests/test.py
This commit is contained in:
clowwindy 2014-12-22 17:09:37 +08:00
parent c7b5a5a011
commit 536b7d1ee6
3 changed files with 13 additions and 1 deletions

View file

@ -77,6 +77,11 @@ def main():
tcp_servers + udp_servers))
signal.signal(getattr(signal, 'SIGQUIT', signal.SIGTERM),
child_handler)
def int_handler(signum, _):
sys.exit(1)
signal.signal(signal.SIGINT, int_handler)
try:
loop = eventloop.EventLoop()
dns_resolver.add_to_loop(loop)