summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/vfork.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/common/vfork.c')
-rw-r--r--libc/sysdeps/linux/common/vfork.c8
1 files changed, 8 insertions, 0 deletions
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 <unistd.h>
+#include <sys/types.h>
+
+pid_t vfork(void)
+{
+ return fork();
+}