Subject: Re: PID_MAX and NO_PID
To: Luke Mewburn <lukem@netbsd.org>
From: Jaromir Dolecek <jdolecek@netbsd.org>
List: tech-kern
Date: 12/18/2002 10:04:49
Luke Mewburn wrote:
> Which ones are they?

Hmm, apparently only iBCS2 it seems (just made short scan for pid_t
type in compat/*/*).

> How insane would it be to restrict it to SHRT_MAX-1 if those COMPAT
> options are enabled, otherwise 99999 ?

This might be an option. It would need to be a variable tho,
since the compat can be loaded via LKM on runtime.

Another option would be to ignore the problem for iBCS2 and just
use 666^W99999 unconditionally.

Perhaps the best solution would be to make PID_MAX sysctlable, and
default to 99999. People still relying on iBCS2 (are there still
some?) can then change it back down.

OTOH, there is no pressing need to make the PID range larger,
is there?

Jaromir
-- 
Jaromir Dolecek <jdolecek@NetBSD.org>            http://www.NetBSD.org/
-=- We should be mindful of the potential goal, but as the tantric    -=-
-=- Buddhist masters say, ``You may notice during meditation that you -=-
-=- sometimes levitate or glow.   Do not let this distract you.''     -=-