This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] posix: Remove dynamic memory allocation from execl{e,p}


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]