On 11:32:04, 5.03.16, Philip Guenther wrote: > On Sat, Mar 5, 2016 at 8:10 AM, Michal Mazurek <[email protected]> wrote: > > sys/compat is gone. I don't know if PID_MAX can or should be increased, > > but I don't think the comment is now useful. > > I think we can go a bit further now and include PID_MAX to 99999 (to > keep it in 5 columns). > > ok? > > Philip Guenther > > Index: proc.h > =================================================================== > RCS file: /data/src/openbsd/src/sys/sys/proc.h,v > retrieving revision 1.214 > diff -u -p -r1.214 proc.h > --- proc.h 4 Mar 2016 14:08:55 -0000 1.214 > +++ proc.h 5 Mar 2016 19:30:27 -0000 > @@ -409,9 +409,9 @@ struct uidinfo *uid_find(uid_t); > /* > * 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". > - * We set PID_MAX to (SHRT_MAX - 1) so we don't break sys/compat. > + * We set PID_MAX to 99999 to keep it in 5 columns in ps > */ > -#define PID_MAX 32766 > +#define PID_MAX 99999 > #define NO_PID (PID_MAX+1) > > #define SESS_LEADER(pr) ((pr)->ps_session->s_leader == (pr)) >
intro.2 needs updating as well: Index: lib/libc/sys/intro.2 =================================================================== RCS file: /cvs/src/lib/libc/sys/intro.2,v retrieving revision 1.62 diff -u -p -r1.62 intro.2 --- lib/libc/sys/intro.2 1 Dec 2015 01:34:16 -0000 1.62 +++ lib/libc/sys/intro.2 6 Mar 2016 14:56:19 -0000 @@ -434,7 +434,7 @@ and root directory and current working d .It Process ID Each active process in the system is uniquely identified by a non-negative integer called a process ID. -The range of this ID is from 1 to 32766. +The range of this ID is from 1 to 99999. .It Parent Process ID A new process is created by a currently active process; (see .Xr fork 2 ) . -- Michal Mazurek
