lkml.org 
[lkml]   [2000]   [Jan]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From"Sean Hunter" <>
DateWed, 12 Jan 2000 13:44:56 +0000
SubjectRe: RFC/PATCH: Random pid generation
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/

\
 
 \ /
  Last update: 2005-03-22 13:55    [from the cache]
©2003-2010