From b8489894f1aa254b9f0f27656d7aee9b073124d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucio=20Andr=C3=A9s=20Illanes=20Albornoz?= Date: Sat, 7 Oct 2017 22:53:49 +0200 Subject: a/patches/bash-4.4.local.patch: fix maxchild to _SC_CHILD_MAX in lib/sh/oslib.c:getmaxchild() (via Redfoxmoon.) --- patches/bash-4.4.local.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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; -- cgit v1.2.3