SCCS-vsn: sys/kern/kern_fork.c 7.20
SCCS-vsn: sys/sys/proc.h 7.20
*
* %sccs.include.redist.c%
*
*
* %sccs.include.redist.c%
*
- * @(#)kern_fork.c 7.19 (Berkeley) %G%
+ * @(#)kern_fork.c 7.20 (Berkeley) %G%
mpid = 100;
pidchecked = 0;
}
if (mpid >= pidchecked) {
int doingzomb = 0;
mpid = 100;
pidchecked = 0;
}
if (mpid >= pidchecked) {
int doingzomb = 0;
/*
* Scan the proc table to check whether this pid
* is in use. Remember the lowest pid that's greater
/*
* Scan the proc table to check whether this pid
* is in use. Remember the lowest pid that's greater
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*
- * @(#)proc.h 7.19 (Berkeley) %G%
+ * @(#)proc.h 7.20 (Berkeley) %G%
+/*
+ * We use process IDs <= PID_MAX;
+ * PID_MAX + 1 must also fit in a pid_t
+ * (used to represent "no process group").
+ */
+#define PID_MAX 30000
+#define NO_PID 30001
#define PIDHASH(pid) ((pid) & pidhashmask)
extern int pidhashmask; /* in param.c */
extern struct proc *pidhash[]; /* in param.c */
#define PIDHASH(pid) ((pid) & pidhashmask)
extern int pidhashmask; /* in param.c */
extern struct proc *pidhash[]; /* in param.c */