This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] posix: Remove dynamic memory allocation from execl{e,p}
- From: Florian Weimer <fweimer at redhat dot com>
- To: Adhemerval Zanella <adhemerval dot zanella at linaro dot org>
- Cc: libc-alpha at sourceware dot org
- Date: Mon, 8 Feb 2016 14:10:33 +0100
- Subject: Re: [PATCH] posix: Remove dynamic memory allocation from execl{e,p}
- Authentication-results: sourceware.org; auth=none
- References: <1454075599-2304-1-git-send-email-adhemerval dot zanella at linaro dot org> <56AB6FFF dot 7040308 at redhat dot com> <9D3D97BB-6342-4158-A328-1F899E1883C2 at linaro dot org>
On 01/29/2016 04:52 PM, Adhemerval Zanella wrote:
> Also mmap usage does not solve the second case (vfork/clone) in case of exec success since the call won't unmap the region.
I've written a test case to confirm this. How unfortunate.
Are there different clone flags we could use? Probably not, because the
goal is to share the page tables.
For posix_spawn, this doesn't really matter because posix_spawn could
allocate and deallocate the mapping.
Florian