]> git.ipfire.org Git - thirdparty/bash.git/commitdiff
Bash-5.2 patch 25: fix problem with subshells terminated by a signal exiting with...
authorChet Ramey <chet.ramey@case.edu>
Sat, 13 Jan 2024 23:26:00 +0000 (18:26 -0500)
committerChet Ramey <chet.ramey@case.edu>
Sat, 13 Jan 2024 23:26:00 +0000 (18:26 -0500)
execute_cmd.c
patchlevel.h

index f2e3cf32299ec30140ebf3c34a03bbb7246ca99d..ed1063e6b6b0f4c7cd0fa48bc4bdabb0d6d47e04 100644 (file)
@@ -1725,6 +1725,9 @@ execute_in_subshell (command, asynchronous, pipe_in, pipe_out, fds_to_close)
     return_code = (return_code == EXECUTION_SUCCESS) ? EXECUTION_FAILURE
                                                     : EXECUTION_SUCCESS;
 
+  /* Check for terminating signals before we return to our caller, which we
+     expect to exit immediately anyway. */
+  CHECK_TERMSIG;
 
   /* If we were explicitly placed in a subshell with (), we need
      to do the `shell cleanup' things, such as running traps[0]. */
index a88aa72e9d3d49e9457f81be57bb598ead20a367..8c430b164c60ed5a87b3d0f30c026756e79b83f5 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 24
+#define PATCHLEVEL 25
 
 #endif /* _PATCHLEVEL_H_ */