On 11 March 2013 13:21, Vineet Gupta <vineet.gup...@synopsys.com> wrote: > Signed-off-by: Vineet Gupta <vgu...@synopsys.com> > Cc: Markos Chandras <markos.chand...@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 > > _______________________________________________ > uClibc mailing list > uClibc@uclibc.org > http://lists.busybox.net/mailman/listinfo/uclibc
Hi Vineet, It was suggested to use only the SIGCHLD flag for clone. See http://lists.uclibc.org/pipermail/uclibc/2012-November/047161.html and http://lists.uclibc.org/pipermail/uclibc/2012-November/047277.html -- Regards, Markos Chandras _______________________________________________ uClibc mailing list uClibc@uclibc.org http://lists.busybox.net/mailman/listinfo/uclibc