|
From: Jeremy F. <je...@go...> - 2005-03-17 01:10:04
|
Paul Mackerras wrote:
>Jeremy Fitzhardinge writes:
>
>
>
>>Hard to tell, really. To be honest, it looks like an application bug.
>>Two threads remain; thread 2 is the LinuxThreads manager thread, so it
>>isn't going to go away until the other thread, thread 5, dies. Thread 5
>>seems to just be looping waiting for an FD which never happens. It
>>would be interesting to attach strace to thread 5 in this state to see
>>what FD it is actually waiting on.
>>
>>
>
>Ummm, hasn't some other thread done an exit_group()? That is supposed
>to kill all the threads in the current process. We shouldn't expect
>every thread to do exit_group.
>
This is LinuxThreads, so each thread is in its own thread group as far
as the kernel is concerned. NPTL threads are all killed by exit_group().
J
|