[PATCH] pthread_once hangs when init routine throws an exception [BZ #18435]

Florian Weimer fweimer@redhat.com
Mon Jun 1 08:39:00 GMT 2015


On 05/31/2015 11:37 PM, Martin Sebor wrote:
> The C++ 2011 std::call_once function is specified to allow
> the initialization routine to exit by throwing an exception.
> Such an execution, termed exceptional, requires call_once to
> propagate the exception to its caller. A program may contain
> any number of exceptional executions but only one returning
> execution (which, if it exists, must be the last execution
> with the same once flag).

What do you propose as the commit message?

It's not immediately obvious to me why this change works. :)

-- 
Florian Weimer / Red Hat Product Security



More information about the Libc-alpha mailing list