summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2016-03-06 05:17:24 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2016-03-06 05:17:24 +0000
commitcb69144e32f7a30d76e562eb89f1bbf1a73df5d0 (patch)
tree7e66c7c3076b173d2734fcdb5fcb56ab08efc2a5 /sys
parent5d08c351be578ab9c2f8cf3d7501eeec83b710d8 (diff)
Increase PID_MAX to 99999: the compats that constrained it to SHRT_MAX-1 are
long gone. reminded by comment suggestion from Michal Mazurek (akfaew (at) jasminek.net) ok natano@
Diffstat (limited to 'sys')
-rw-r--r--sys/sys/proc.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/sys/proc.h b/sys/sys/proc.h
index df2df666cd2..afa1e0e234c 100644
--- a/sys/sys/proc.h
+++ b/sys/sys/proc.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: proc.h,v 1.214 2016/03/04 14:08:55 deraadt Exp $ */
+/* $OpenBSD: proc.h,v 1.215 2016/03/06 05:17:23 guenther Exp $ */
/* $NetBSD: proc.h,v 1.44 1996/04/22 01:23:21 christos Exp $ */
/*-
@@ -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))