summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authordg <dg@FreeBSD.org>1998-11-13 17:53:55 +0000
committerdg <dg@FreeBSD.org>1998-11-13 17:53:55 +0000
commit830a5dfa0cb7ad8afa0574ed21915a1328f8b93f (patch)
tree2ad48b747643d15345aa2079b17e20de8c4e5fe0 /sys
parent8066791e595c58b6e425b97310c7b6828a2be472 (diff)
downloadFreeBSD-src-830a5dfa0cb7ad8afa0574ed21915a1328f8b93f.zip
FreeBSD-src-830a5dfa0cb7ad8afa0574ed21915a1328f8b93f.tar.gz
Increased PID_MAX to 99999. The main reason for doing this is to make the
pid space somewhat more sparse which improves the performance of finding an unused pid on systems with large numbers of processes. The new value was chosen so that it doesn't overflow the 5 digit pid fields in various programs.
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 07f1856..7ee6020 100644
--- a/sys/sys/proc.h
+++ b/sys/sys/proc.h
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)proc.h 8.15 (Berkeley) 5/19/95
- * $Id: proc.h,v 1.60 1998/11/11 10:04:12 truckman Exp $
+ * $Id: proc.h,v 1.61 1998/11/11 10:56:05 truckman Exp $
*/
#ifndef _SYS_PROC_H_
@@ -271,8 +271,8 @@ MALLOC_DECLARE(M_SUBPROC);
* 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 PID_MAX 99999
+#define NO_PID 100000
#define SESS_LEADER(p) ((p)->p_session->s_leader == (p))
#define SESSHOLD(s) ((s)->s_count++)
OpenPOWER on IntegriCloud