diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1998-12-29 17:05:51 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1998-12-29 17:05:51 +0000 |
commit | d66d2b1c0c7a88d285fec8df406bfdc26292ceed (patch) | |
tree | 773b66ee57db9c50814e3c6808de6ade76ba152b /sys | |
parent | 11bc76846f38d07f4be9f363577977d4ab765175 (diff) |
Fat PIDs cannot be used with COMPAT_09, reported by ho@netman.se
Diffstat (limited to 'sys')
-rw-r--r-- | sys/sys/proc.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/sys/proc.h b/sys/sys/proc.h index b73aa9a6a0c..3c74f0a511e 100644 --- a/sys/sys/proc.h +++ b/sys/sys/proc.h @@ -1,4 +1,4 @@ -/* $OpenBSD: proc.h,v 1.18 1998/12/28 06:28:14 deraadt Exp $ */ +/* $OpenBSD: proc.h,v 1.19 1998/12/29 17:05:50 niklas Exp $ */ /* $NetBSD: proc.h,v 1.44 1996/04/22 01:23:21 christos Exp $ */ /*- @@ -258,7 +258,11 @@ struct pcred { * 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". */ +#ifdef COMPAT_09 +#define PID_MAX 30000 +#else #define PID_MAX 99999 +#endif #define NO_PID (PID_MAX+1) #define SESS_LEADER(p) ((p)->p_session->s_leader == (p)) |