make available a namespace-safe vfork, if supported
this may be useful to posix_spawn..?
This commit is contained in:
parent
14f2e115c2
commit
768f39a535
1 changed files with 4 additions and 1 deletions
|
|
@ -1,8 +1,11 @@
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include "syscall.h"
|
#include "syscall.h"
|
||||||
|
#include "libc.h"
|
||||||
|
|
||||||
pid_t vfork(void)
|
pid_t __vfork(void)
|
||||||
{
|
{
|
||||||
/* vfork syscall cannot be made from C code */
|
/* vfork syscall cannot be made from C code */
|
||||||
return syscall(SYS_fork);
|
return syscall(SYS_fork);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
weak_alias(__vfork, vfork);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue