summaryrefslogtreecommitdiff
path: root/waitress/task.py
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2015-05-14 02:57:35 -0400
committerChris McDonough <chrism@plope.com>2015-05-14 02:57:35 -0400
commit8d90c4fa61a6d3120a0f260651c91fd5cab453b4 (patch)
tree22f31ae73fc76756f51d529e9795fe1f4df9ef3e /waitress/task.py
parent228d068484b1fe253f35c4e367a5886332a0ed48 (diff)
downloadwaitress-feature.exit-from-thread.tar.gz
dont translate KeyboardInterrupt in worker threads to thread.interrupt_main()feature.exit-from-thread
Diffstat (limited to 'waitress/task.py')
-rw-r--r--waitress/task.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/waitress/task.py b/waitress/task.py
index 2df0989..d6d18a7 100644
--- a/waitress/task.py
+++ b/waitress/task.py
@@ -83,13 +83,6 @@ class ThreadedTaskDispatcher(object):
'Exception when servicing %r' % task)
if isinstance(e, JustTesting):
break
- except KeyboardInterrupt as e:
- # we translate a KeyboardInterrupt exception raised in a
- # thread to mean call thread.interrupt_main(), which will
- # cause a KeyboardInterrupt to be raised in the main
- # process (eventually causing the process to exit).
- thread.interrupt_main()
- break
finally:
with self.thread_mgmt_lock:
self.stop_count -= 1