Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-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)