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, 25 Jul 2012 13:08:34 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:13.0) Gecko/20120614 Thunderbird/13.0.1

On 7/25/12 11:33 AM, Andreas Schwab wrote:

> I cannot see how CHILD_MAX is related to pid reuse.  CHILD_MAX is a
> per-user limit, but the pid namespace is global.  If the shell forks a
> new process, and the pid of it matches one of the previously used pids
> for asynchronous jobs it can surely discard the remembered status for
> that job.

Thanks, that's a good restatement of the problem.  Your proposed solution
is one of the possibles.  The question is whether or not it's necessary
(apparently on some systems) and sufficient (probably).

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]