summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 8a9e835..ee5b602 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
OpenPOWER on IntegriCloud