mirror of
https://github.com/fluencelabs/musl
synced 2025-06-30 07:02:41 +00:00
additional fixes for linux kernel apis with old syscalls removed
This commit is contained in:
@ -1,12 +1,17 @@
|
||||
#define _GNU_SOURCE
|
||||
#include <unistd.h>
|
||||
#include <signal.h>
|
||||
#include "syscall.h"
|
||||
#include "libc.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
|
||||
}
|
||||
|
||||
weak_alias(__vfork, vfork);
|
||||
|
Reference in New Issue
Block a user