106-upstream-bash43-006.patch (1144B)
1 BASH PATCH REPORT 2 ================= 3 4 Bash-Release: 4.3 5 Patch-ID: bash43-006 6 7 Bug-Reported-by: Eduardo A . Bustamante Lopez <dualbus@gmail.com> 8 Bug-Reference-ID: <20140228170013.GA16015@dualbus.me> 9 Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2014-02/msg00091.html 10 11 Bug-Description: 12 13 A shell that started with job control active but was not interactive left 14 the terminal in the wrong process group when exiting, causing its parent 15 shell to get a stop signal when it attempted to read from the terminal. 16 17 Patch (apply with `patch -p0'): 18 19 --- a/jobs.c 20 +++ b/jobs.c 21 @@ -4374,7 +4374,7 @@ without_job_control () 22 void 23 end_job_control () 24 { 25 - if (interactive_shell) /* XXX - should it be interactive? */ 26 + if (interactive_shell || job_control) /* XXX - should it be just job_control? */ 27 { 28 terminate_stopped_jobs (); 29 30 --- a/patchlevel.h 31 +++ b/patchlevel.h 32 @@ -25,6 +25,6 @@ 33 regexp `^#define[ ]*PATCHLEVEL', since that's what support/mkversion.sh 34 looks for to find the patch level (for the sccs version string). */ 35 36 -#define PATCHLEVEL 5 37 +#define PATCHLEVEL 6 38 39 #endif /* _PATCHLEVEL_H_ */