summaryrefslogtreecommitdiff
path: root/sys/kern/kern_kthread.c
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2000-01-28 19:45:05 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2000-01-28 19:45:05 +0000
commitfed5882ced75b6e05869eefc7ad9106deaaf1362 (patch)
treeb28810db180fbd01f28e1ce7dc3fac0fbb370248 /sys/kern/kern_kthread.c
parent8d6d49e0c8440bdabde1143333730fe697a5ab9f (diff)
Change fork1() from taking forktype and rforkflags, into a single flags
argument. Let sys_rfork build the arguments to fork1() and do the sanity checks itself.
Diffstat (limited to 'sys/kern/kern_kthread.c')
-rw-r--r--sys/kern/kern_kthread.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_kthread.c b/sys/kern/kern_kthread.c
index 37b488c65be..c5daef62143 100644
--- a/sys/kern/kern_kthread.c
+++ b/sys/kern/kern_kthread.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_kthread.c,v 1.4 1999/08/17 10:32:18 niklas Exp $ */
+/* $OpenBSD: kern_kthread.c,v 1.5 2000/01/28 19:45:04 art Exp $ */
/* $NetBSD: kern_kthread.c,v 1.3 1998/12/22 21:21:36 kleink Exp $ */
/*-
@@ -83,7 +83,7 @@ kthread_create(func, arg, newpp, fmt, va_alist)
* descriptors and don't leave the exit status around for the
* parent to wait for.
*/
- error = fork1(&proc0, ISRFORK, RFPROC | RFMEM | RFFDG | RFNOWAIT, NULL,
+ error = fork1(&proc0, FORK_RFORK|FORK_SHAREVM|FORK_NOZOMBIE, NULL,
0, rv);
if (error)
return (error);