Date: Tue, 9 May 2006 16:13:18 +0200 From: Frank Steinborn <steinex@nognu.de> To: Nikos Vassiliadis <nvass@teledomenet.gr> Cc: freebsd-questions@freebsd.org, nospam@mgedv.net Subject: Re: kern.randompid: jot generation senseful? Message-ID: <20060509141318.88A0FB822@shodan.nognu.de> In-Reply-To: <200605091622.30492.nvass@teledomenet.gr> References: <000a01c67362$f3d1f3d0$01010101@avalon.lan> <200605091622.30492.nvass@teledomenet.gr>
next in thread | previous in thread | raw e-mail | index | archive | help
Nikos Vassiliadis wrote: > Isn't kern.randompid a boolean? TRUE or FALSE? No. > It is just on or off. 1 means PIDs are random. > 0 means PIDs are sequential. to be exact, everything > not being 0, is TRUE. That is not true. Peter Pentchev once wrote: "The kern.randompid sysctl is not a boolean flag, but an estimate of the random value that will be added to each newly created pid. For more information, read the comments in src/sys/kern/kern_fork.c before the sysctl_kern_randompid() function (around line 150). The function itself ignores sysctl settings of less than 2." Frank
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060509141318.88A0FB822>