0004-bash50-004.patch 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. From https://ftp.gnu.org/gnu/bash/bash-5.0-patches/bash50-004
  2. Signed-off-by: Pascal de Bruijn <p.debruijn@unilogic.nl>
  3. BASH PATCH REPORT
  4. =================
  5. Bash-Release: 5.0
  6. Patch-ID: bash50-004
  7. Bug-Reported-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
  8. Bug-Reference-ID: <87lg0g8aiw.fsf@fifthhorseman.net>
  9. Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2019-04/msg00076.html
  10. Bug-Description:
  11. In bash-5.0, the `wait' builtin without arguments waits for all children of the
  12. shell. This includes children it `inherited' at shell invocation time. This
  13. patch modifies the behavior to not wait for these inherited children, some
  14. of which might be long-lived.
  15. Patch (apply with `patch -p0'):
  16. *** ../bash-5.0-patched/jobs.c 2018-12-06 11:44:34.000000000 -0500
  17. --- b/jobs.c 2019-04-12 15:15:10.000000000 -0400
  18. ***************
  19. *** 2489,2496 ****
  20. wait_procsubs ();
  21. reap_procsubs ();
  22. ! #if 1
  23. /* We don't want to wait indefinitely if we have stopped children. */
  24. - /* XXX - should add a loop that goes through the list of process
  25. - substitutions and waits for each proc in turn before this code. */
  26. if (any_stopped == 0)
  27. {
  28. --- 2490,2495 ----
  29. wait_procsubs ();
  30. reap_procsubs ();
  31. ! #if 0
  32. /* We don't want to wait indefinitely if we have stopped children. */
  33. if (any_stopped == 0)
  34. {
  35. *** ../bash-5.0/patchlevel.h 2016-06-22 14:51:03.000000000 -0400
  36. --- b/patchlevel.h 2016-10-01 11:01:28.000000000 -0400
  37. ***************
  38. *** 26,30 ****
  39. looks for to find the patch level (for the sccs version string). */
  40. ! #define PATCHLEVEL 3
  41. #endif /* _PATCHLEVEL_H_ */
  42. --- 26,30 ----
  43. looks for to find the patch level (for the sccs version string). */
  44. ! #define PATCHLEVEL 4
  45. #endif /* _PATCHLEVEL_H_ */