summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_fork.c
diff options
context:
space:
mode:
authorniklas <niklas@openbsd.org>1999-03-02 22:19:08 +0000
committerniklas <niklas@openbsd.org>1999-03-02 22:19:08 +0000
commitebd6dabbd1ad6ca3bf257da2925a88b3f7d676fb (patch)
tree1645dd057c300caa0beef08ead193c40b97290e5 /sys/kern/kern_fork.c
parentShouldn't be here. Autogenerated. (diff)
downloadwireguard-openbsd-ebd6dabbd1ad6ca3bf257da2925a88b3f7d676fb.tar.xz
wireguard-openbsd-ebd6dabbd1ad6ca3bf257da2925a88b3f7d676fb.zip
RFNOWAIT does not dissociate the child from its parent in any other
way than that the parent wait call will never get the status of this child, says Rob
Diffstat (limited to 'sys/kern/kern_fork.c')
-rw-r--r--sys/kern/kern_fork.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c
index 3b5260699ce..55cf72ce782 100644
--- a/sys/kern/kern_fork.c
+++ b/sys/kern/kern_fork.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_fork.c,v 1.18 1999/02/26 04:59:39 art Exp $ */
+/* $OpenBSD: kern_fork.c,v 1.19 1999/03/02 22:19:08 niklas Exp $ */
/* $NetBSD: kern_fork.c,v 1.29 1996/02/09 18:59:34 christos Exp $ */
/*
@@ -280,11 +280,9 @@ again:
p2->p_flag |= P_PPWAIT;
LIST_INSERT_AFTER(p1, p2, p_pglist);
p2->p_pptr = p1;
- if (forktype == ISRFORK && (rforkflags & RFNOWAIT)) {
+ if (forktype == ISRFORK && (rforkflags & RFNOWAIT))
p2->p_flag |= P_NOZOMBIE;
- } else {
- LIST_INSERT_HEAD(&p1->p_children, p2, p_sibling);
- }
+ LIST_INSERT_HEAD(&p1->p_children, p2, p_sibling);
LIST_INIT(&p2->p_children);
#ifdef KTRACE