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