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.

31 lines
870 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. diff --git a/jobs.c b/jobs.c
  5. index cef3c79..bf99266 100644
  6. --- a/jobs.c
  7. +++ b/jobs.c
  8. @@ -4166,10 +4166,8 @@ initialize_job_control (force)
  9. if (js.c_childmax < 0)
  10. js.c_childmax = DEFAULT_CHILD_MAX;
  11. -#if 0
  12. if (js.c_childmax > MAX_CHILD_MAX)
  13. js.c_childmax = MAX_CHILD_MAX;
  14. -#endif
  15. return job_control;
  16. }
  17. @@ -4547,10 +4545,8 @@ mark_dead_jobs_as_notified (force)
  18. if (js.c_childmax < 0)
  19. js.c_childmax = DEFAULT_CHILD_MAX;
  20. -#if 0
  21. if (js.c_childmax > MAX_CHILD_MAX)
  22. js.c_childmax = MAX_CHILD_MAX;
  23. -#endif
  24. /* Don't do anything if the number of dead processes is less than CHILD_MAX
  25. and we're not forcing a cleanup. */