From c55fc11cae264445579dc34674c24922c96f63d4 Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Wed, 17 Feb 2021 15:13:45 +0100 Subject: Added a comment --- examples/guided.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'examples') diff --git a/examples/guided.py b/examples/guided.py index cf7c3ef3..bccedb0a 100644 --- a/examples/guided.py +++ b/examples/guided.py @@ -243,6 +243,9 @@ for i in range(5, 0, -1): sys.stdin.read() SIG_TRIGGER = False signal.signal(signal.SIGINT, sig_handler) + +# Put back the default/original signal handler now that we're done catching +# and interrupting SIGINT with "Do you really want to abort". print() signal.signal(signal.SIGINT, original_sigint_handler) -- cgit v1.2.3-54-g00ecf