[PATCH 1/7] vfork: Fix flags when using clone syscall
Markos Chandras
markos.chandras at gmail.com
Mon Mar 11 13:31:16 UTC 2013
On 11 March 2013 13:21, Vineet Gupta <Vineet.Gupta1 at synopsys.com> wrote:
> 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
>
> _______________________________________________
> uClibc mailing list
> uClibc at 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
More information about the uClibc
mailing list