Commit 2a4d789b authored by Luis Pedro Coelho's avatar Luis Pedro Coelho
Browse files

BUG Fix multithreaded error handling

parent eb0112bb
......@@ -10,9 +10,8 @@ import multiprocessing
basedir = path.dirname(__file__)
def exit_worker():
import sys
sys.exit(1)
def exit_worker(signum, frame):
raise RuntimeError("Keyboard Interrupt")
def init_worker():
import signal
signal.signal(signal.SIGINT, exit_worker)
......
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