]> git.ipfire.org Git - thirdparty/bash.git/commitdiff
Bash-5.3 patch 5: fix crash when restoring default disposition for SIGINT in asynchro...
authorChet Ramey <chet.ramey@case.edu>
Wed, 26 Nov 2025 17:47:49 +0000 (12:47 -0500)
committerChet Ramey <chet.ramey@case.edu>
Wed, 26 Nov 2025 17:47:49 +0000 (12:47 -0500)
patchlevel.h
trap.c

index fa8d6cbaa02ffffbd994da01ace02af9f5fb9f5e..7caf230ab593b7431d53d34964c267791cd340a1 100644 (file)
@@ -25,6 +25,6 @@
    regexp `^#define[   ]*PATCHLEVEL', since that's what support/mkversion.sh
    looks for to find the patch level (for the sccs version string). */
 
-#define PATCHLEVEL 4
+#define PATCHLEVEL 5
 
 #endif /* _PATCHLEVEL_H_ */
diff --git a/trap.c b/trap.c
index 1b3365f409d8e325cb9d9f95146ce65d4e2d5b80..5cf8a1bd1d817312bb49c5b4bb4cb461acaee42a 100644 (file)
--- a/trap.c
+++ b/trap.c
@@ -964,6 +964,7 @@ restore_default_signal (int sig)
       original_signals[sig] = SIG_DFL; /* XXX */
       set_signal_handler (sig, SIG_DFL);
       change_signal (sig, (char *)DEFAULT_SIG);
+      sigmodes[sig] &= ~SIG_TRAPPED;   /* no longer trapped */
       return;
     }