From ce00c73ab811fcc5f5a666d3691e74fae49f0a41 Mon Sep 17 00:00:00 2001 From: gobbo_a Date: Tue, 30 Aug 2022 15:31:03 +0200 Subject: [PATCH] Closedown --- script/test/test_abort.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/script/test/test_abort.py b/script/test/test_abort.py index 0de03c7..c33d532 100644 --- a/script/test/test_abort.py +++ b/script/test/test_abort.py @@ -20,16 +20,16 @@ import signal -def on_abort(parent_thread): - print ("on_abort") - tid=parent_thread.ident - exception = KeyboardInterrupt - ctypes.pythonapi.PyThreadState_SetAsyncExc(ctypes.c_long(tid), ctypes.py_object(exception)) +#def on_abort(parent_thread): +# print ("on_abort") +# tid=parent_thread.ident +# exception = KeyboardInterrupt +# ctypes.pythonapi.PyThreadState_SetAsyncExc(ctypes.c_long(tid), ctypes.py_object(exception)) -def on_close(parent_thread): - print ("on_close") - on_abort(parent_thread) +#def on_close(parent_thread): +# print ("on_close") +# on_abort(parent_thread) #def handler(signum, frame): # print('Signal handler called with signal', signum)