[PATCH] Fix quick_exit to match C++11 specification.

Carlos O'Donell carlos@redhat.com
Tue Jun 7 07:50:00 GMT 2016


On 06/07/2016 02:18 AM, Florian Weimer wrote:
>> I don't quite follow.
>>
>> It is the call to exit, _Exit/_exit, or quick_exit which decides
>> the sequence of process termination actions.
> 
> Well yes, in your implementation of the compat symbol. But it doesn't
> has to be this way, and it may not be the “correct” approach.
> 
>> 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.
> 
> I put “correct” in scare quotes because I'm not convinced that we'd
> need a compat symbol at all for this (but if we do, it probably
> should be put on the registration, storing a flag along with callback
> registration data).

What do we gain by this?

-- 
Cheers,
Carlos.



More information about the Libc-alpha mailing list