This is the mail archive of the
cygwin-developers@cygwin.com
mailing list for the Cygwin project.
Recent change to init.cc for thread detach looks wrong?
- From: Christopher Faylor <cgf at redhat dot com>
- To: cygwin-developers at cygwin dot com
- Date: Fri, 20 Sep 2002 01:32:05 -0400
- Subject: Recent change to init.cc for thread detach looks wrong?
- Reply-to: cygwin-developers at cygwin dot com
Robert,
Your recent change:
2002-09-11 Robert Collins <rbtcollins@hotmail.com>
* init.cc (dll_entry): On thread detach, if the thread hasn't
exit()ed, do so.
doesn't look right. The code invokes pthread::exit which can block
waiting on a mutex, it seems.
Since the thread attach and detach code is, I believe, forced to
be single thread (i.e., no other threads are scheduled), this
can lead to some hangs.
I've been seeing some defunct, unkillable processes recently in
cygwin. I wonder if this is the cause.
cgf