On 8/29/12 10:06 AM, Michael Haubenwallner wrote:

>> I prepared a patch which add configure option to enable and set the number 
>> of job exit statuses to remember.
> 
> Why not simply use the static CHILD_MAX value instead?
> Feels like this is what the spec means - and conforming kernels do not 
> guarantee for more
> than that anyway, counting synchronous, asynchronous and substituted commands 
> together.
> 
> However, Linux has stopped defining CHILD_MAX (not so) recently (value was 
> 999),
> so _POSIX_CHILD_MAX (25 is current value, 6 is old value) would feel correct 
> then...

Bash prefers the return value of sysconf (_SC_CHILD_MAX), which is supposed
to reflect the CHILD_MAX value on the running system anyway.  This is the
typical strategy that allows a binary compiled on one system get the
appropriate value on any system where it's run.

Chet
-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    c...@case.edu    http://cnswww.cns.cwru.edu/~chet/

Reply via email to