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.

29 lines
791 B

  1. Fix job control
  2. Patch was taken from https://git.alpinelinux.org/cgit/aports/tree/main/bash/fix-jobs.patch
  3. See also "Bash 4.4.12-r2 jobs hangs on arm (alpine 3.7)", https://bugs.alpinelinux.org/issues/8447
  4. --- a/jobs.c
  5. +++ b/jobs.c
  6. @@ -4326,10 +4326,8 @@ just_bail:
  7. if (js.c_childmax < 0)
  8. js.c_childmax = DEFAULT_CHILD_MAX;
  9. -#if 0
  10. if (js.c_childmax > MAX_CHILD_MAX)
  11. js.c_childmax = MAX_CHILD_MAX;
  12. -#endif
  13. return job_control;
  14. }
  15. @@ -4707,10 +4705,8 @@ mark_dead_jobs_as_notified (force)
  16. if (js.c_childmax < 0)
  17. js.c_childmax = DEFAULT_CHILD_MAX;
  18. -#if 0
  19. if (js.c_childmax > MAX_CHILD_MAX)
  20. js.c_childmax = MAX_CHILD_MAX;
  21. -#endif
  22. /* Don't do anything if the number of dead processes is less than CHILD_MAX
  23. and we're not forcing a cleanup. */