bash-4.1-009.patch 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. BASH PATCH REPORT
  2. =================
  3. Bash-Release: 4.1
  4. Patch-ID: bash41-009
  5. Bug-Reported-by: Tomas Trnka <tomastrnka@gmx.com>
  6. Bug-Reference-ID: <201003242030.02166.tomastrnka@gmx.com>
  7. Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2010-03/msg00090.html
  8. Bug-Description:
  9. An arriving SIGCHLD will interrupt `slow' system calls such as write(2) to
  10. or read(2) from a terminal. This results in an error message and truncated
  11. input or output.
  12. Patch (apply with `patch -p0'):
  13. *** ../bash-4.1-patched/sig.c Fri Aug 14 16:31:52 2009
  14. --- ./sig.c Fri Mar 26 22:34:11 2010
  15. ***************
  16. *** 655,660 ****
  17. --- 655,663 ----
  18. act.sa_flags |= SA_INTERRUPT; /* XXX */
  19. else
  20. act.sa_flags |= SA_RESTART; /* XXX */
  21. + #else
  22. + if (sig == SIGCHLD)
  23. + act.sa_flags |= SA_RESTART;
  24. #endif
  25. sigemptyset (&act.sa_mask);
  26. sigemptyset (&oact.sa_mask);
  27. *** ../bash-4.1-patched/patchlevel.h 2009-10-01 16:39:22.000000000 -0400
  28. --- ./patchlevel.h 2010-01-14 09:38:08.000000000 -0500
  29. ***************
  30. *** 26,30 ****
  31. looks for to find the patch level (for the sccs version string). */
  32. ! #define PATCHLEVEL 8
  33. #endif /* _PATCHLEVEL_H_ */
  34. --- 26,30 ----
  35. looks for to find the patch level (for the sccs version string). */
  36. ! #define PATCHLEVEL 9
  37. #endif /* _PATCHLEVEL_H_ */