summaryrefslogtreecommitdiff
path: root/src/process/vfork.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2018-09-11 15:26:51 -0400
committerRich Felker <dalias@aerifal.cx>2018-09-12 14:34:37 -0400
commitced75472d7e3d73d5b057e36ccbc7b7fcba95104 (patch)
tree24365904fae978a92f48fcb93977eedb900aa419 /src/process/vfork.c
parent6d47488e8616dfc24e58aeb56db520ac7c80421e (diff)
downloadmusl-ced75472d7e3d73d5b057e36ccbc7b7fcba95104.tar.gz
remove __vfork alias
this was added so that posix_spawn and possibly other functionality could be implemented in terms of vfork, but that turned out to be unsafe. any such usage needs __clone with proper handling of stack lifetime.
Diffstat (limited to 'src/process/vfork.c')
-rw-r--r--src/process/vfork.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/process/vfork.c b/src/process/vfork.c
index ac954651..d430c13f 100644
--- a/src/process/vfork.c
+++ b/src/process/vfork.c
@@ -2,9 +2,8 @@
#include <unistd.h>
#include <signal.h>
#include "syscall.h"
-#include "libc.h"
-pid_t __vfork(void)
+pid_t vfork(void)
{
/* vfork syscall cannot be made from C code */
#ifdef SYS_fork
@@ -13,5 +12,3 @@ pid_t __vfork(void)
return syscall(SYS_clone, SIGCHLD, 0);
#endif
}
-
-weak_alias(__vfork, vfork);