This is the mail archive of the libc-alpha@sources.redhat.com 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] Make exit thread-safe


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 â

Attachment: signature.asc
Description: OpenPGP digital signature


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