diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1999-01-11 20:25:10 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1999-01-11 20:25:10 +0000 |
commit | 3291c76805f007674d80da840ef2230446e84b7e (patch) | |
tree | 71f3b2974f9f3a8cbd01783958c2aae540d7a5f8 /sys/kern | |
parent | 996e66a78f4bae8235a1a4bb3f0848defcbc743e (diff) |
just check rforkflags if ISRFORK
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/kern_fork.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c index 086b76a755a..92dade927dd 100644 --- a/sys/kern/kern_fork.c +++ b/sys/kern/kern_fork.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_fork.c,v 1.12 1999/01/10 02:20:20 niklas Exp $ */ +/* $OpenBSD: kern_fork.c,v 1.13 1999/01/11 20:25:09 niklas Exp $ */ /* $NetBSD: kern_fork.c,v 1.29 1996/02/09 18:59:34 christos Exp $ */ /* @@ -259,7 +259,7 @@ again: p2->p_flag |= P_PPWAIT; LIST_INSERT_AFTER(p1, p2, p_pglist); p2->p_pptr = p1; - if (rforkflags & RFNOWAIT) { + if (forktype == ISRFORK && (rforkflags & RFNOWAIT)) { p2->p_flag |= P_NOZOMBIE; } else { LIST_INSERT_HEAD(&p1->p_children, p2, p_sibling); |