Subj : Re: exit_group: unfinished ... exit status 144 To : comp.programming.threads From : loic-dev Date : Fri Aug 19 2005 02:31 am Salut Anna, > Just wanted to add one more information. The above problem > happens only if I cancel all the threads that is spawned by the > process in the atexit handlers. > > If all the threads are cancelled before calling exit(0), then > everything is working fine. On the example you gave, I found out that, on my machine, thread_join() hanged indefinitively... A bug/issue in glibc/NPTL isn't excluded, I guess. But I believe, you could avoid cancelling threads in the atexit handlers and use another solution, based e.g. on condition variable. This works. Regards, Loic. .