Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Nov 1999 17:41:51 -0800 (PST)
From:      Kris Kennaway <kris@hub.freebsd.org>
To:        Matthew Dillon <dillon@apollo.backplane.com>
Cc:        Dan Moschuk <dan@FreeBSD.ORG>, cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG
Subject:   Re: cvs commit: src/sys/i386/conf files.i386 src/sys/kern kern_fork.c src/sys/libkern arc4random.c src/sys/sys libkern.h
Message-ID:  <Pine.BSF.4.21.9911281739310.67618-100000@hub.freebsd.org>
In-Reply-To: <199911290119.RAA47318@apollo.backplane.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 28 Nov 1999, Matthew Dillon wrote:

>     I sure hope the algorithm does not recycle PIDs for a reasonable amount
>     of time, or you may end up with a race in scripts that kill processes
>     via their /var/run pid's.  You know: kill -HUP, then kill -9 sequences
>     and such.

It's statistical: a new PID is chosen randomly such that no other process
currently shares it. So you have roughly a 1/100000 chance of your new
process being immediately assigned any given PID.

Kris

----
Just remember, as you celebrate Thanksgiving with your family feasts of
turkey, cranberries, stuffing, gravy, mashed potatoes, squash, corn,
cornbread, apples, pickles, dumplings, fish, orangutans, fruitbats,
breakfast cereals, and so forth, to keep in mind the true reason for the
season: The birth of Santa.



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.9911281739310.67618-100000>