Subject: kern/4956: PID_MAX definition change request
To: None <gnats-bugs@gnats.netbsd.org>
From: None <mason@acheron.middleboro.ma.us>
List: netbsd-bugs
Date: 02/08/1998 12:22:55
>Number:         4956
>Category:       kern
>Synopsis:       change request
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sun Feb  8 09:50:05 1998
>Last-Modified:
>Originator:     Mason Loring Bliss
>Organization:
>Release:        1.3 or newer
>Environment:
System: NetBSD acheron.middleboro.ma.us 1.3B NetBSD 1.3B (MLB) #0: Thu Jan 22 01:44:48 EST 1998 mason@acheron.middleboro.ma.us:/usr/src/sys/arch/mac68k/compile/MLB mac68k


>Description:
It would be nice to be able to specify PID_MAX from the kernel configuration
file. However, this is impossible right now, as far as I can tell.

>How-To-Repeat:
>Fix:
The following definition would allow PID_MAX to be defined in config files,
I believe:

*** proc.h.old  Sun Feb  8 12:18:06 1998
--- proc.h      Sun Feb  8 12:18:49 1998
***************
*** 252,259 ****
   * We use process IDs <= PID_MAX; PID_MAX + 1 must also fit in a pid_t,
   * as it is used to represent "no process group".
   */
! #define       PID_MAX         30000
! #define       NO_PID          30001

  #define SESS_LEADER(p)        ((p)->p_session->s_leader == (p))
  #define       SESSHOLD(s)     ((s)->s_count++)
--- 252,265 ----
   * We use process IDs <= PID_MAX; PID_MAX + 1 must also fit in a pid_t,
   * as it is used to represent "no process group".
   */
!
! #ifndef PID_MAX
! #define PID_MAX         30000
! #define NO_PID          30001
! #else
! #define NO_PID          (PID_MAX) + 1
! #endif
!

  #define SESS_LEADER(p)        ((p)->p_session->s_leader == (p))
  #define       SESSHOLD(s)     ((s)->s_count++)

>Audit-Trail:
>Unformatted: