diff options
| author | mycroft <mycroft@NetBSD.org> | 1996-10-09 00:04:39 +0000 |
|---|---|---|
| committer | mycroft <mycroft@NetBSD.org> | 1996-10-09 00:04:39 +0000 |
| commit | 02ee12e4baf4e57bc9897decb26f5c77564c9635 (patch) | |
| tree | 590c0dabcdd28c43ca100b932683fdf4c1b9864c | |
| parent | b1b86c0c981718b4b7733dc7f7241fc8c0994bb9 (diff) | |
Use PHOLD() and PRELE() rather than frobbing p_holdcnt directly.
| -rw-r--r-- | sys/kern/kern_fork.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c index a3eb4648eb6..76dc04fa57b 100644 --- a/sys/kern/kern_fork.c +++ b/sys/kern/kern_fork.c @@ -1,4 +1,4 @@ -/* $NetBSD: kern_fork.c,v 1.29 1996/02/09 18:59:34 christos Exp $ */ +/* $NetBSD: kern_fork.c,v 1.30 1996/10/09 00:04:39 mycroft Exp $ */ /* * Copyright (c) 1982, 1986, 1989, 1991, 1993 @@ -245,7 +245,7 @@ again: * This begins the section where we must prevent the parent * from being swapped. */ - p1->p_holdcnt++; + PHOLD(p1); #ifdef __FORK_BRAINDAMAGE /* @@ -282,7 +282,7 @@ again: /* * Now can be swapped. */ - p1->p_holdcnt--; + PRELE(p1); /* * Preserve synchronization semantics of vfork. If waiting for |
