Calling other functions while concurrently calling exit?
Ondřej Bílka
neleai@seznam.cz
Sat Sep 19 10:10:00 GMT 2015
On Sat, Sep 19, 2015 at 08:48:21AM +0200, Andreas Schwab wrote:
> "Carlos O'Donell" <carlos@redhat.com> writes:
>
> > Is it spelled out anywhere in POSIX or ISO C that calling
> > other functions concurrently with exit is going to result
> > in undefined behaviour?
>
> exit must be thread-safe, except that calling it more than once is
> undefined.
>
Wait, we don't do sane thing and first cancel all other threads before doing anything?
How otherwise we would run tls destructors in context of correct thread?
More information about the Libc-alpha
mailing list