Subject: Re: PID_MAX and NO_PID
To: Jaromir Dolecek <jdolecek@netbsd.org>
From: Luke Mewburn <lukem@netbsd.org>
List: tech-kern
Date: 12/18/2002 19:40:24
On Wed, Dec 18, 2002 at 09:27:44AM +0100, Jaromir Dolecek wrote:
  | matthew green wrote:
  | > i think we could safely raise PID_MAX to 99999.  but beyond
  | > this and suddenly you've got pids > 5 numbers for the first
  | > time and i don't know what will break.  i've heard of a few
  | > horror stories from IRIX (they have huge pids).
  | 
  | There is another issue that some of compat/* have 16bit
  | PIDs. So we could safely raise PID_MAX to little bit less
  | than SHRT_MAX-1, i.e. 32766. After that, care has to be
  | taken.

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

Luke.