From ced75472d7e3d73d5b057e36ccbc7b7fcba95104 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Tue, 11 Sep 2018 15:26:51 -0400 Subject: 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. --- src/process/vfork.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/process/vfork.c') 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 #include #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); -- cgit v1.2.1