summaryrefslogtreecommitdiff
path: root/sys/kern/kern_fork.c
diff options
context:
space:
mode:
authorRobert Watson <rwatson@FreeBSD.org>2001-02-12 17:59:01 +0000
committerRobert Watson <rwatson@FreeBSD.org>2001-02-12 17:59:01 +0000
commitd941d4752c35875b909d880862e41af581fd1162 (patch)
tree29619b2ae9703b638770a21c5a6c107f159caffc /sys/kern/kern_fork.c
parent8684bec007bdb711c2aaa99f1ab76386048a08ac (diff)
Notes
Diffstat (limited to 'sys/kern/kern_fork.c')
-rw-r--r--sys/kern/kern_fork.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c
index 8a9e835e996a..ee5b60253869 100644
--- a/sys/kern/kern_fork.c
+++ b/sys/kern/kern_fork.c
@@ -148,6 +148,8 @@ rfork(p, uap)
int nprocs = 1; /* process 0 */
static int nextpid = 0;
+SYSCTL_INT(_kern, OID_AUTO, lastpid, CTLFLAG_RD, &nextpid, 0,
+ "Last used PID");
/*
* Random component to nextpid generation. We mix in a random factor to make