This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH v2 3/3] posix: New Linux posix_spawn{p} implementation
- From: Florian Weimer <fweimer at redhat dot com>
- To: adhemerval dot zanella at linaro dot org
- Cc: libc-alpha at sourceware dot org
- Date: Tue, 2 Feb 2016 14:05:59 +0100
- Subject: Re: [PATCH v2 3/3] posix: New Linux posix_spawn{p} implementation
- Authentication-results: sourceware.org; auth=none
- References: <1454343665-1706-1-git-send-email-adhemerval dot zanella at linaro dot org> <1454343665-1706-4-git-send-email-adhemerval dot zanella at linaro dot org>
On 02/01/2016 05:21 PM, Adhemerval Zanella wrote:
> + new_pid = CLONE (__spawni_child, STACK (stack, stack_size),
> + CLONE_VM | CLONE_VFORK | SIGCHLD, &args);
Does this set up new per-thread variables? Otherwise, errno in the
parent and child will be same and the code still has races.
Florian