From: Chet Ramey Date: Wed, 26 Nov 2025 17:47:49 +0000 (-0500) Subject: Bash-5.3 patch 5: fix crash when restoring default disposition for SIGINT in asynchro... X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f63f0134b19f303677a4371469158e4618967f63;p=thirdparty%2Fbash.git Bash-5.3 patch 5: fix crash when restoring default disposition for SIGINT in asynchronous subshell --- diff --git a/patchlevel.h b/patchlevel.h index fa8d6cba..7caf230a 100644 --- a/patchlevel.h +++ b/patchlevel.h @@ -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 1b3365f4..5cf8a1bd 100644 --- 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; }