From: Rich Felker Date: Sat, 15 Oct 2011 03:34:12 +0000 (-0400) Subject: make available a namespace-safe vfork, if supported X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=768f39a535e5f5a50c2c17dc072e92ba01665ef0;p=musl make available a namespace-safe vfork, if supported this may be useful to posix_spawn..? --- diff --git a/src/process/vfork.c b/src/process/vfork.c index a7dd86c8..16d07ea7 100644 --- a/src/process/vfork.c +++ b/src/process/vfork.c @@ -1,8 +1,11 @@ #include #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);