From b8489894f1aa254b9f0f27656d7aee9b073124d4 Mon Sep 17 00:00:00 2001 From: Lucio Andrés Illanes Albornoz Date: Oct 07 2017 20:53:49 +0000 Subject: a/patches/bash-4.4.local.patch: fix maxchild to _SC_CHILD_MAX in lib/sh/oslib.c:getmaxchild() (via Redfoxmoon.) --- diff --git a/patches/bash-4.4.local.patch b/patches/bash-4.4.local.patch index 1413037..993594a 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;