From a0e60c6d2e0839e3f87b1e0ac3af4be838b7c9ab Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Wed, 5 Mar 2003 10:28:53 +0000 Subject: Default to using fork() for vfork() when no arch specific implementation of vfork is present. --- libc/sysdeps/linux/common/vfork.c | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 libc/sysdeps/linux/common/vfork.c (limited to 'libc/sysdeps/linux/common/vfork.c') diff --git a/libc/sysdeps/linux/common/vfork.c b/libc/sysdeps/linux/common/vfork.c new file mode 100644 index 000000000..ba4f042ca --- /dev/null +++ b/libc/sysdeps/linux/common/vfork.c @@ -0,0 +1,8 @@ +/* Trivial implementation for arches that lack vfork */ +#include +#include + +pid_t vfork(void) +{ + return fork(); +} -- cgit v1.2.3