This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Fix quick_exit to match C++11 specification.
- From: Carlos O'Donell <carlos at redhat dot com>
- To: Florian Weimer <fweimer at redhat dot com>, GNU C Library <libc-alpha at sourceware dot org>, Adhemerval Zanella <adhemerval dot zanella at linaro dot org>
- Cc: Johan Karlsson <johan dot karlsson at enea dot com>
- Date: Mon, 6 Jun 2016 20:22:50 -0400
- Subject: Re: [PATCH] Fix quick_exit to match C++11 specification.
- Authentication-results: sourceware.org; auth=none
- References: <5751B292 dot 40109 at redhat dot com> <383b6001-e2ef-635a-4240-aa7fba826de3 at redhat dot com> <57525107 dot 5060500 at redhat dot com> <1c6e298e-ae7c-7e7a-d271-dfb75e874a04 at redhat dot com>
On 06/05/2016 11:13 AM, Florian Weimer wrote:
> On 06/04/2016 05:54 AM, Carlos O'Donell wrote:
> Do we really need a new version? Is it correct to version
> quick_exit? Would it be more correct to version
> __cxa_thread_atexit_impl instead because whether the destructor runs
> at thread exit seems more like a property of the code that registers
> the destructor, than the code that invokes quick_exit?
I don't quite follow.
It is the call to exit, _Exit/_exit, or quick_exit which decides
the sequence of process termination actions.
Particularly in C++ the quick_exit call must not run destructors
for thread local objects, since the standard mandates that.
Changing __cxa_thread_atexit_impl would be more complicated than
just changing quick_exit.
--
Cheers,
Carlos.