summaryrefslogtreecommitdiff
path: root/sys/kern/kern_fork.c
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2000-11-09 17:02:26 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2000-11-09 17:02:26 +0000
commit650bd2314bebb15b4a77806ee7eebc696bad1c52 (patch)
tree032ec6e5a28e40cad177ffc7ad60b746609cdd8d /sys/kern/kern_fork.c
parentaca218e970d7fb6ca9aa21cda40c9518393ee7f9 (diff)
PHOLD/PRELE instead manual fiddling with p_holdcnt
Diffstat (limited to 'sys/kern/kern_fork.c')
-rw-r--r--sys/kern/kern_fork.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c
index 33b3da238c0..aa7457f3e7b 100644
--- a/sys/kern/kern_fork.c
+++ b/sys/kern/kern_fork.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_fork.c,v 1.34 2000/07/10 05:06:12 deraadt Exp $ */
+/* $OpenBSD: kern_fork.c,v 1.35 2000/11/09 17:02:25 art Exp $ */
/* $NetBSD: kern_fork.c,v 1.29 1996/02/09 18:59:34 christos Exp $ */
/*
@@ -339,7 +339,7 @@ again:
* This begins the section where we must prevent the parent
* from being swapped.
*/
- p1->p_holdcnt++;
+ PHOLD(p1);
#if defined(UVM)
if (flags & FORK_VMNOSTACK) {
@@ -414,7 +414,7 @@ again:
/*
* Now can be swapped.
*/
- p1->p_holdcnt--;
+ PRELE(p1);
#if defined(UVM)
uvmexp.forks++;