This is the mail archive of the cygwin-developers@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Recent change to init.cc for thread detach looks wrong?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]