1
0

106-upstream-bash43-006.patch 1.1 KB

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