From 3091a84c8d36a9c070979d1a78c2851568aba6fb Mon Sep 17 00:00:00 2001 From: gobbo_a Date: Mon, 29 Aug 2022 17:31:10 +0200 Subject: [PATCH] Closedown --- script/test/test_abort.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/script/test/test_abort.py b/script/test/test_abort.py index f82d9fd..6f54b47 100644 --- a/script/test/test_abort.py +++ b/script/test/test_abort.py @@ -1,3 +1,4 @@ +""" import ctypes def ctype_async_raise(thread, exception): tid=thread.ident @@ -14,11 +15,12 @@ def ctype_async_raise(thread, exception): ctypes.pythonapi.PyThreadState_SetAsyncExc(tid, NULL) raise SystemError("PyThreadState_SetAsyncExc failed") - +""" +#import signal def on_abort(parent_thread): print ("abort") - ctype_async_raise(parent_thread, KeyboardInterrupt) + #ctype_async_raise(parent_thread, KeyboardInterrupt) time.sleep(10.0) \ No newline at end of file