summaryrefslogtreecommitdiff
path: root/src/process
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-10-14 23:34:12 -0400
committerRich Felker <dalias@aerifal.cx>2011-10-14 23:34:12 -0400
commit768f39a535e5f5a50c2c17dc072e92ba01665ef0 (patch)
treef406a2cd9bdf5bcf1e7b5c359f802482c7823edd /src/process
parent14f2e115c2a1ee473ec8f28b1e804329f6a4d765 (diff)
downloadmusl-768f39a535e5f5a50c2c17dc072e92ba01665ef0.tar.gz
make available a namespace-safe vfork, if supported
this may be useful to posix_spawn..?
Diffstat (limited to 'src/process')
-rw-r--r--src/process/vfork.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/process/vfork.c b/src/process/vfork.c
index a7dd86c8..16d07ea7 100644
--- a/src/process/vfork.c
+++ b/src/process/vfork.c
@@ -1,8 +1,11 @@
#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);
}
+
+weak_alias(__vfork, vfork);