diff --git a/examples/run_all_model.py b/examples/run_all_model.py index 31a82a569..d587eff15 100644 --- a/examples/run_all_model.py +++ b/examples/run_all_model.py @@ -68,6 +68,7 @@ def only_allow_defined_args(function_to_decorate): def handler(signum, frame): os.system("kill -9 %d" % os.getpid()) + signal.signal(signal.SIGINT, handler)