This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] pthread_once hangs when init routine throws an exception [BZ #18435]
- From: Florian Weimer <fweimer at redhat dot com>
- To: Martin Sebor <msebor at redhat dot com>, GNU C Library <libc-alpha at sourceware dot org>
- Date: Mon, 01 Jun 2015 10:38:58 +0200
- Subject: Re: [PATCH] pthread_once hangs when init routine throws an exception [BZ #18435]
- Authentication-results: sourceware.org; auth=none
- References: <556B7F10 dot 40209 at redhat dot com>
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