Recent change to init.cc for thread detach looks wrong?
Christopher Faylor
cgf@redhat.com
Thu Sep 19 22:31:00 GMT 2002
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
More information about the Cygwin-developers
mailing list