[PATCH] Make exit thread-safe
Ulrich Drepper
drepper@redhat.com
Thu Feb 24 14:37:00 GMT 2005
Sripathi Kodi wrote:
> I have noticed that exit() in stdlib/exit.c is not thread-safe. I have a
> testcase that creates 10 threads, and they all call 'exit' almost
> immediately.
And this means your code is broken. Read the spec. exit must be called
at most once in the entire program run. Fix your code.
--
â§ Ulrich Drepper â§ Red Hat, Inc. â§ 444 Castro St â§ Mountain View, CA â
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20050224/98122b5d/attachment.sig>
More information about the Libc-alpha
mailing list