Re: RFC/PATCH: Random pid generation

Sean Hunter (sean@uncarved.co.uk)
Wed, 12 Jan 2000 13:44:56 +0000


On Tue, Jan 11, 2000 at 08:20:54PM +0100, Marcus Sundberg wrote:
> Stephen Frost <sfrost@ns.snowman.net> writes:
>
> > People use the PID to create temp files and whatnot,
> > from what I've seen.
>
> And they do that in order to get a unique number, not a random number.

This is also a really bad idea, because with easily guessable pids you
are opening yourself to /tmp races. This is actually a argument for
random pids (or fixing the programs).

Sean

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/