On 05/20/2013 10:30 AM, Peng Haitao wrote: > > On 05/19/2013 02:30 AM, Michael Kerrisk wrote: >> >> Ouch! Really? so one cannot call exit(3) from a multithreaded program? >> This seems a clear violation of the standard. >> > > Yes. > I make a test program to test exit(3) which is not thread-safe. > > $ gcc -o exit exit.c -lpthread > $ ./exit > Goodbye. > ... > Goodbye. > Segmentation fault > >> Could you provide some pointers to more information on this point (e.g., URL >> of mail thread archive discussions.) >> > In glibc manual, exit() is also MT-Unsafe. I will send v2 patch with update the date in the TH line. http://www.gnu.org/software/libc/manual/html_mono/libc.html#Normal-Termination -- Best Regards, Peng > http://sourceware.org/ml/libc-alpha/2013-03/msg00004.html > > ��.n��������+%������w��{.n�����{��f��)��jg��������ݢj����G�������j:+v���w�m������w�������h�����٥