bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AIX and Interix also do early PID recycling.


From: Chet Ramey
Subject: Re: AIX and Interix also do early PID recycling.
Date: Wed, 29 Aug 2012 20:55:43 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:14.0) Gecko/20120713 Thunderbird/14.0

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    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]