Skip to content
Snippets Groups Projects
Commit 3ebb7c16 authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Minor keyboard-interrupt safety fixes

parent d863b67b
No related branches found
No related tags found
No related merge requests found
......@@ -1429,9 +1429,9 @@ def write_method_wrapper(gen, cls_name, meth):
gen("try:")
with Indentation(gen):
gen("_result = None")
gen("with DelayedKeyboardInterrupt():")
with Indentation(gen):
gen("_result = None")
gen(
"_result = lib.{c_name}({args})"
.format(c_name=meth.c_name, args=", ".join(passed_args)))
......@@ -1444,7 +1444,7 @@ def write_method_wrapper(gen, cls_name, meth):
print("*** islpy was interrupted while collecting a result. "
"System state is inconsistent as a result, aborting.",
file=sys.stderr)
sys._exit(-1)
os._exit(-1)
""")
gen.extend(safety)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment