diff options
author | Rich Felker <dalias@aerifal.cx> | 2011-10-14 23:34:12 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2011-10-14 23:34:12 -0400 |
commit | 768f39a535e5f5a50c2c17dc072e92ba01665ef0 (patch) | |
tree | f406a2cd9bdf5bcf1e7b5c359f802482c7823edd | |
parent | 14f2e115c2a1ee473ec8f28b1e804329f6a4d765 (diff) | |
download | musl-768f39a535e5f5a50c2c17dc072e92ba01665ef0.tar.gz musl-768f39a535e5f5a50c2c17dc072e92ba01665ef0.tar.bz2 musl-768f39a535e5f5a50c2c17dc072e92ba01665ef0.tar.xz musl-768f39a535e5f5a50c2c17dc072e92ba01665ef0.zip |
make available a namespace-safe vfork, if supported
this may be useful to posix_spawn..?
-rw-r--r-- | src/process/vfork.c | 5 |
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); |