From e1e2c1280270629eb1e66b6a1110008ff77e84b5 Mon Sep 17 00:00:00 2001 From: Niklas Hallqvist Date: Tue, 3 Apr 2001 20:37:17 +0000 Subject: We now can emulate vfork14 correctly --- sys/compat/netbsd/netbsd_misc.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'sys/compat/netbsd/netbsd_misc.c') diff --git a/sys/compat/netbsd/netbsd_misc.c b/sys/compat/netbsd/netbsd_misc.c index 9504031a292..d6c22b6aa68 100644 --- a/sys/compat/netbsd/netbsd_misc.c +++ b/sys/compat/netbsd/netbsd_misc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: netbsd_misc.c,v 1.10 2001/02/26 17:24:55 art Exp $ */ +/* $OpenBSD: netbsd_misc.c,v 1.11 2001/04/03 20:37:16 niklas Exp $ */ /* * Copyright (c) 1982, 1986, 1989, 1991, 1993 @@ -53,7 +53,6 @@ #include #include -/* XXX doesn't do shared address space */ /*ARGSUSED*/ int netbsd_sys___vfork14(p, v, retval) @@ -61,8 +60,7 @@ netbsd_sys___vfork14(p, v, retval) void *v; register_t *retval; { - /* XXX - should add FORK_SHAREVM */ - return (fork1(p, FORK_VFORK|FORK_PPWAIT, NULL, 0, retval)); + return (fork1(p, SIGCHLD, FORK_PPWAIT|FORK_SHAREVM, NULL, 0, retval)); } /* XXX syncs whole file */ -- cgit v1.2.3