Sign in
android
/
platform
/
external
/
musl
/
refs/heads/android13-d4-release
/
.
/
src
/
process
/
vfork.c
blob: d430c13fca36b38ba8a16ed3d833c09ff70ef91f [
file
] [
log
] [
blame
] [
edit
]
#define
_GNU_SOURCE
#include
<unistd.h>
#include
<signal.h>
#include
"syscall.h"
pid_t
vfork
(
void
)
{
/* vfork syscall cannot be made from C code */
#ifdef
SYS_fork
return
syscall
(
SYS_fork
);
#else
return
syscall
(
SYS_clone
,
SIGCHLD
,
0
);
#endif
}