Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds+github@gmail.com>2020-10-18 21:23:01 +0200
committerAnton Hvornum <anton.feeds+github@gmail.com>2020-10-18 21:23:01 +0200
commit06ee896c6c58e877325896b33a2a3dd3eb0a1727 (patch)
tree78053ae908629bb49725246fcb2e957875d9ec3b
parentdb2e5d721cbfc9009b617a4c4b0bc3d54b158f65 (diff)
Changed my mind, reverting to the original sig-handler is better.
-rw-r--r--examples/guided.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/guided.py b/examples/guided.py
index 7cec99a3..cc660b90 100644
--- a/examples/guided.py
+++ b/examples/guided.py
@@ -13,6 +13,7 @@ def sig_handler(sig, frame):
global SIG_TRIGGER
SIG_TRIGGER = True
signal.signal(signal.SIGINT, kill_handler)
+original_sigint_handler = signal.getsignal(signal.SIGINT)
signal.signal(signal.SIGINT, sig_handler)
def perform_installation(device, boot_partition, language, mirrors):
@@ -183,7 +184,7 @@ for i in range(5, 0, -1):
SIG_TRIGGER = False
signal.signal(signal.SIGINT, sig_handler)
print()
-signal.signal(signal.SIGINT, kill_handler)
+signal.signal(signal.SIGINT, original_sigint_handler)
"""
Setup the blockdevice, filesystem (and optionally encryption).