Bash-5.2 patch 25: fix problem with subshells terminated by a signal exiting with the wrong status

This commit is contained in:
Chet Ramey
2024-01-13 18:26:00 -05:00
parent d1cf6ad908
commit 0bec38a566
2 changed files with 4 additions and 1 deletions
+3
View 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]. */
+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 24
#define PATCHLEVEL 25
#endif /* _PATCHLEVEL_H_ */