Re: PID sequences

H. Peter Anvin (
24 Feb 1998 02:32:22 GMT

Followup to: <>
By author: Jim Nance <>
In newsgroup:
> Hello all,
> I have been meaning to post this for about a year but I keep
> forgetting :-( I'm waiting on something to finish running, and I
> finally remembered.
> I have seen severl posts (over the last couple of years) where
> people complained about either performance or security problems related
> to generating PID numbers for child processes at fork() time. There is
> the assumption that PID numbers increase, skipping over in-use PIDs,
> and then wrap at 32K. I dont think Digital Unix does it this way:

All of these assumptions are bad. There are a number of systems which
don't follow this, including AIX.


    PGP: 2047/2A960705 BA 03 D3 2C 14 A8 A8 BD  1E DF FE 69 EE 35 BD 74
    See for web page and full PGP public key
        I am Bahá'í -- ask me about it or see
   "To love another person is to see the face of God." -- Les Misérables

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to