Closedown
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user