fix misleading comment in strstr
[musl.git] / src / process / vfork.c
blobd430c13fca36b38ba8a16ed3d833c09ff70ef91f
1 #define _GNU_SOURCE
2 #include <unistd.h>
3 #include <signal.h>
4 #include "syscall.h"
6 pid_t vfork(void)
8 /* vfork syscall cannot be made from C code */
9 #ifdef SYS_fork
10 return syscall(SYS_fork);
11 #else
12 return syscall(SYS_clone, SIGCHLD, 0);
13 #endif