mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-18 15:12:02 +01:00
previous fix didnt solve the problem for 32 bit architectures. We fix it by capping childmax to 8192. ref #8447
27 lines
662 B
Diff
27 lines
662 B
Diff
diff --git a/jobs.c b/jobs.c
|
|
index cef3c79..bf99266 100644
|
|
--- a/jobs.c
|
|
+++ b/jobs.c
|
|
@@ -4166,10 +4166,8 @@ initialize_job_control (force)
|
|
if (js.c_childmax < 0)
|
|
js.c_childmax = DEFAULT_CHILD_MAX;
|
|
|
|
-#if 0
|
|
if (js.c_childmax > MAX_CHILD_MAX)
|
|
js.c_childmax = MAX_CHILD_MAX;
|
|
-#endif
|
|
|
|
return job_control;
|
|
}
|
|
@@ -4547,10 +4545,8 @@ mark_dead_jobs_as_notified (force)
|
|
if (js.c_childmax < 0)
|
|
js.c_childmax = DEFAULT_CHILD_MAX;
|
|
|
|
-#if 0
|
|
if (js.c_childmax > MAX_CHILD_MAX)
|
|
js.c_childmax = MAX_CHILD_MAX;
|
|
-#endif
|
|
|
|
/* Don't do anything if the number of dead processes is less than CHILD_MAX
|
|
and we're not forcing a cleanup. */
|