summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--patches/bash-4.4.local.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/patches/bash-4.4.local.patch b/patches/bash-4.4.local.patch
index 14130372..993594a0 100644
--- a/patches/bash-4.4.local.patch
+++ b/patches/bash-4.4.local.patch
@@ -116,3 +116,15 @@
TERMCAP_DEP=
elif test $bash_cv_termcap_lib = libc; then
TERMCAP_LIB=
+diff -ru bash-4.4.orig/lib/sh/oslib.c bash-4.4/lib/sh/oslib.c
+--- bash-4.4.orig/lib/sh/oslib.c 2013-10-14 15:12:57.000000000 +0200
++++ bash-4.4/lib/sh/oslib.c 2017-10-07 22:48:52.478254782 +0200
+@@ -280,7 +280,7 @@
+ long
+ getmaxchild ()
+ {
+- static long maxchild = -1L;
++ static long maxchild = _SC_CHILD_MAX;
+
+ if (maxchild > 0)
+ return maxchild;