projects
/
musl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
14f2e11
)
make available a namespace-safe vfork, if supported
author
Rich Felker
<dalias@aerifal.cx>
Sat, 15 Oct 2011 03:34:12 +0000
(23:34 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Sat, 15 Oct 2011 03:34:12 +0000
(23:34 -0400)
this may be useful to posix_spawn..?
src/process/vfork.c
patch
|
blob
|
history
diff --git
a/src/process/vfork.c
b/src/process/vfork.c
index
a7dd86c
..
16d07ea
100644
(file)
--- a/
src/process/vfork.c
+++ b/
src/process/vfork.c
@@
-1,8
+1,11
@@
#include <unistd.h>
#include "syscall.h"
#include <unistd.h>
#include "syscall.h"
+#include "libc.h"
-pid_t vfork(void)
+pid_t
__
vfork(void)
{
/* vfork syscall cannot be made from C code */
return syscall(SYS_fork);
}
{
/* vfork syscall cannot be made from C code */
return syscall(SYS_fork);
}
+
+weak_alias(__vfork, vfork);