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] Fix quick_exit to match C++11 specification.


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.


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