Script execution

This commit is contained in:
2022-08-29 18:01:38 +02:00
parent d40bf9e7dc
commit 6075733d6f

View File

@@ -24,4 +24,13 @@ def on_abort(parent_thread):
signal.raise_signal(signal.SIGINT)
def handler(signum, frame):
print('Signal handler called with signal', signum)
# Set the signal handler and a 5-second alarm
signal.signal(signal.SIGINT, handler)
time.sleep(10.0)