Revert "Shut down server on SIGINT on Windows"

This reverts commit f8de674bd220986e623b0664fecdb1d1f4a77a46.
This commit is contained in:
Unrud 2017-07-30 11:21:04 +02:00
parent f8de674bd2
commit d34ee1217d

View File

@ -256,11 +256,9 @@ def serve(configuration, logger):
try: try:
rlist, _, xlist = select.select( rlist, _, xlist = select.select(
sockets, [], sockets, select_timeout) sockets, [], sockets, select_timeout)
except select.error: except (KeyboardInterrupt, select.error):
continue # SIGINT is handled by signal handler above
except KeyboardInterrupt: rlist, xlist = [], []
shutdown()
continue
if xlist: if xlist:
raise RuntimeError("unhandled socket error") raise RuntimeError("unhandled socket error")
if rlist: if rlist: