summaryrefslogtreecommitdiff
path: root/sys/kern/kern_fork.c
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>1999-07-17 21:49:38 +0000
committerArtur Grabowski <art@cvs.openbsd.org>1999-07-17 21:49:38 +0000
commit836aea0c39e02c5c1d213bf5e2685a97c09e07a0 (patch)
tree7d9b0858c8c3f16f0bb8bcdfd5e70e9745adc38e /sys/kern/kern_fork.c
parent3f2078cfb68f35ab8e947cd42d516d2d69758665 (diff)
correct fork statistics for UVM
Diffstat (limited to 'sys/kern/kern_fork.c')
-rw-r--r--sys/kern/kern_fork.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c
index 16a328d025f..1aade0e4ea0 100644
--- a/sys/kern/kern_fork.c
+++ b/sys/kern/kern_fork.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_fork.c,v 1.21 1999/07/15 14:07:41 art Exp $ */
+/* $OpenBSD: kern_fork.c,v 1.22 1999/07/17 21:49:37 art Exp $ */
/* $NetBSD: kern_fork.c,v 1.29 1996/02/09 18:59:34 christos Exp $ */
/*
@@ -378,13 +378,11 @@ again:
*/
p1->p_holdcnt--;
-#if defined(UVM) /* ART_UVM_XXX */
+#if defined(UVM)
uvmexp.forks++;
-#ifdef notyet
- if (rforkflags & FORK_PPWAIT)
+ if (forktype == ISVFORK)
uvmexp.forks_ppwait++;
-#endif
- if (rforkflags & RFMEM)
+ if (forktype == ISRFORK && (rforkflags & RFMEM))
uvmexp.forks_sharevm++;
#endif