112-upstream-bash43-012.patch (1237B)
1 BASH PATCH REPORT 2 ================= 3 4 Bash-Release: 4.3 5 Patch-ID: bash43-012 6 7 Bug-Reported-by: Eduardo A. Bustamante López<dualbus@gmail.com> 8 Bug-Reference-ID: <5346B54C.4070205@case.edu> 9 Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2014-04/msg00051.html 10 11 Bug-Description: 12 13 When a SIGCHLD trap runs a command containing a shell builtin while 14 a script is running `wait' to wait for all running children to complete, 15 the SIGCHLD trap will not be run once for each child that terminates. 16 17 Patch (apply with `patch -p0'): 18 19 --- a/jobs.c 20 +++ b/jobs.c 21 @@ -3597,6 +3597,7 @@ run_sigchld_trap (nchild) 22 unwind_protect_int (jobs_list_frozen); 23 unwind_protect_pointer (the_pipeline); 24 unwind_protect_pointer (subst_assign_varlist); 25 + unwind_protect_pointer (this_shell_builtin); 26 27 /* We have to add the commands this way because they will be run 28 in reverse order of adding. We don't want maybe_set_sigchld_trap () 29 --- a/patchlevel.h 30 +++ b/patchlevel.h 31 @@ -25,6 +25,6 @@ 32 regexp `^#define[ ]*PATCHLEVEL', since that's what support/mkversion.sh 33 looks for to find the patch level (for the sccs version string). */ 34 35 -#define PATCHLEVEL 11 36 +#define PATCHLEVEL 12 37 38 #endif /* _PATCHLEVEL_H_ */