Revert "Shut down server on SIGINT on Windows"
This reverts commit f8de674bd2
.
This commit is contained in:
@ -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:
|
||||||
|
Reference in New Issue
Block a user