Re: Random PIDs, etc.

H. Peter Anvin (
28 Feb 1998 03:40:16 GMT

Followup to: <>
By author: Chris Wedgwood <>
In newsgroup:
> Now this probably includes Apache - but since this situation can occur
> under OpenBSD which presumably apache runs under, a work around has to
> be found anyhow.
> And programs that generate message IDs, etc (and Dean Gaudlet pointed)
> out by doing "time() concat getpid()" will also have to be fixed. I'm
> not sure how many things will be affected by this, but its broken
> anyhow.
> (Perhaps, and its probably a bit far-fetched, but as the net grows, the
> odds on a non-deliberate collision are increasing all the time,
> especially if the algorithm only uses the hostname and not the fqdn).

I really do think that any PID allocation algorithm which lets process
ID's get reassigned in *sigificantly* less than the time it would take
to cycle through the entire pool is broken.


    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