Commit ef94b6c6 authored by Denis Bilenko's avatar Denis Bilenko

fix KeyboardInterrupt

- was broken with recent signal() changes
parent b4dcad91
......@@ -145,7 +145,7 @@ class Hub(greenlet):
def run(self):
global _threadlocal
assert self is getcurrent(), 'Do not call run() directly'
self.keyboard_interrupt_signal = signal(2, MAIN.throw, KeyboardInterrupt)
self.keyboard_interrupt_signal = signal(2, core.active_event, MAIN.throw, KeyboardInterrupt)
try:
loop_count = 0
while True:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment