From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: ffc1e,eab943a190c40eeb,start X-Google-Attributes: gidffc1e,public X-Google-Thread: f678f,eab943a190c40eeb,start X-Google-Attributes: gidf678f,public X-Google-Thread: fee84,eab943a190c40eeb,start X-Google-Attributes: gidfee84,public From: byron@Central.KeyWest.MPGN.COM (Byron K Guernsey) Subject: PthreadD4 problem under OSF/1 3.0b Date: 1996/04/15 Message-ID: #1/1 X-Deja-AN: 147614839 organization: Multi-Player Games Network keywords: thread pthread posix osf newsgroups: comp.programming.threads,comp.unix.osf.osf1,comp.unix.osf.misc I wrote a program which spawns threads for TCP connections and the parent immediately does a pthread_detach() to allow the threads to die without having to babysit. It appears to work fine. However, I used the dbx debugger to attach to the process and do a tlist to see what threads were running when no threads should be running. It listed 3 threads running, the parent which was in an accept and two children who logged as exited correctly in the log file. The 2 threads had already called pthread_exit() but were waiting in some routine named ???_rpc_msg. I'm positive that I am detaching from them after I create them, and if I understood correctly they should be able to exit and cleanup after that is done? Why then does the debugger show these lying in wait? Byron -- No matter what your doing, Someone will always be there to tell you how...