Script execution
This commit is contained in:
@@ -16,11 +16,12 @@ def ctype_async_raise(thread, exception):
|
||||
raise SystemError("PyThreadState_SetAsyncExc failed")
|
||||
|
||||
"""
|
||||
#import signal
|
||||
import signal
|
||||
|
||||
def on_abort(parent_thread):
|
||||
print ("abort")
|
||||
#ctype_async_raise(parent_thread, KeyboardInterrupt)
|
||||
signal.raise_signal(signal.SIGINT)
|
||||
|
||||
|
||||
time.sleep(10.0)
|
||||
Reference in New Issue
Block a user