Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds@gmail.com>2021-02-17 15:13:45 +0100
committerAnton Hvornum <anton.feeds@gmail.com>2021-02-17 15:13:45 +0100
commitc55fc11cae264445579dc34674c24922c96f63d4 (patch)
tree57d6a5b4e0b2d6e7b1dabce545a17939daa7fa1c
parenta9ce3e539028b2484991d21528a09cc3f41210de (diff)
Added a comment
-rw-r--r--examples/guided.py3
1 files changed, 3 insertions, 0 deletions
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)