musl/src/process/vfork.c
Rich Felker 768f39a535 make available a namespace-safe vfork, if supported
this may be useful to posix_spawn..?
2011-10-14 23:34:12 -04:00

12 lines
188 B
C

#include <unistd.h>
#include "syscall.h"
#include "libc.h"
pid_t __vfork(void)
{
/* vfork syscall cannot be made from C code */
return syscall(SYS_fork);
}
weak_alias(__vfork, vfork);