Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: byron@Central.KeyWest.MPGN.COM (Byron K Guernsey)
Subject: PthreadD4 problem under OSF/1 3.0b
Date: 1996/04/15	[thread overview]
Message-ID: <byron.829583142@Central.KeyWest.MPGN.COM> (raw)

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...



             reply	other threads:[~1996-04-15  4:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-04-15  4:00 Byron K Guernsey [this message]
1996-04-17  4:00 ` PthreadD4 problem under OSF/1 3.0b Dave Butenhof
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox