diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 2001-04-03 20:37:17 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 2001-04-03 20:37:17 +0000 |
commit | e1e2c1280270629eb1e66b6a1110008ff77e84b5 (patch) | |
tree | 06bee3693b0073d38cfa29f594cc8f26165d72dc /sys/compat | |
parent | 2a7b178f496dd79dc257736f8ef9174fa882aa15 (diff) |
We now can emulate vfork14 correctly
Diffstat (limited to 'sys/compat')
-rw-r--r-- | sys/compat/netbsd/netbsd_misc.c | 6 |
1 files changed, 2 insertions, 4 deletions
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 <compat/netbsd/netbsd_signal.h> #include <compat/netbsd/netbsd_syscallargs.h> -/* 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 */ |