Signed-off-by: Vineet Gupta <[email protected]>
Cc: Markos Chandras <[email protected]>
---
 libc/sysdeps/linux/common/vfork.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/libc/sysdeps/linux/common/vfork.c 
b/libc/sysdeps/linux/common/vfork.c
index a85156d..c4ebe1f 100644
--- a/libc/sysdeps/linux/common/vfork.c
+++ b/libc/sysdeps/linux/common/vfork.c
@@ -13,10 +13,11 @@ extern __typeof(vfork) __vfork attribute_hidden;
 # if defined __NR_clone && !defined __NR_vfork
 # include <signal.h>
 # include <sys/types.h>
+# include <sys/sched.h>        /* CLONE_* */
 
 pid_t __vfork(void)
 {
-       pid_t pid = INLINE_SYSCALL(clone, 4, SIGCHLD,
+       pid_t pid = INLINE_SYSCALL(clone, 4, (CLONE_VM|CLONE_VFORK|SIGCHLD),
                                   NULL, NULL, NULL);
 
        if (pid < 0)
-- 
1.7.4.1

_______________________________________________
uClibc mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/uclibc

Reply via email to