make available a namespace-safe vfork, if supported
[musl] / src / process / vfork.c
index a7dd86c..16d07ea 100644 (file)
@@ -1,8 +1,11 @@
 #include <unistd.h>
 #include "syscall.h"
+#include "libc.h"
 
-pid_t vfork(void)
+pid_t __vfork(void)
 {
        /* vfork syscall cannot be made from C code */
        return syscall(SYS_fork);
 }
+
+weak_alias(__vfork, vfork);