summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_kthread.c
diff options
context:
space:
mode:
authorart <art@openbsd.org>2000-01-28 19:45:03 +0000
committerart <art@openbsd.org>2000-01-28 19:45:03 +0000
commit011c8ed204c4a72b130497db1c4b063152ac8af4 (patch)
tree3bc8ef4112e248aa97f4b220b464a9762b82ec4f /sys/kern/kern_kthread.c
parentChange Apache config tools to not assume certain files are executable, (diff)
downloadwireguard-openbsd-011c8ed204c4a72b130497db1c4b063152ac8af4.tar.xz
wireguard-openbsd-011c8ed204c4a72b130497db1c4b063152ac8af4.zip
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);