[PATCH 1/7] vfork: Fix flags when using clone syscall
Vineet Gupta
Vineet.Gupta1 at synopsys.com
Mon Mar 11 13:21:48 UTC 2013
Signed-off-by: Vineet Gupta <vgupta at synopsys.com>
Cc: Markos Chandras <markos.chandras at imgtec.com>
---
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
More information about the uClibc
mailing list