Script execution

This commit is contained in:
gobbo_a committed 2022-08-29 18:01:38 +02:00
1 parent d40bf9e7dc
commit 6075733d6f
1 file changed
+9
+9
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)