Bash-5.3 patch 5: fix crash when restoring default disposition for SIGINT in asynchronous subshell

This commit is contained in:
Chet Ramey
2025-11-26 12:47:49 -05:00
parent edff796a30
commit f63f0134b1
2 changed files with 2 additions and 1 deletions
+1 -1
View 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_ */
+1
View File
@@ -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;
}