Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 May 2006 10:22:15 +0300
From:      Nikos Vassiliadis <nvass@teledomenet.gr>
To:        freebsd-questions@freebsd.org
Cc:        nospam@mgedv.net, Frank Steinborn <steinex@nognu.de>
Subject:   Re: kern.randompid: jot generation senseful?
Message-ID:  <200605101022.16121.nvass@teledomenet.gr>
In-Reply-To: <20060509141318.88A0FB822@shodan.nognu.de>
References:  <000a01c67362$f3d1f3d0$01010101@avalon.lan> <200605091622.30492.nvass@teledomenet.gr> <20060509141318.88A0FB822@shodan.nognu.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tuesday 09 May 2006 17:13, Frank Steinborn wrote:
> 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."
>

Excuse my ignorance. It was an unlucky guess...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200605101022.16121.nvass>