You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
1.6 KiB

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