Closedown

This commit is contained in:
2022-08-30 15:31:03 +02:00
parent 574777bf5d
commit ce00c73ab8
+8 -8
View File
@@ -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)