From owner-cvs-all Sun Nov 28 17:41:55 1999 Delivered-To: cvs-all@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 758) id B1AFE14A1E; Sun, 28 Nov 1999 17:41:51 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by hub.freebsd.org (Postfix) with ESMTP id 9EE051CD414; Sun, 28 Nov 1999 17:41:51 -0800 (PST) (envelope-from kris@hub.freebsd.org) Date: Sun, 28 Nov 1999 17:41:51 -0800 (PST) From: Kris Kennaway To: Matthew Dillon Cc: Dan Moschuk , 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 In-Reply-To: <199911290119.RAA47318@apollo.backplane.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk 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