Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/winsup
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2011-08-25 23:37:39 +0400
committerChristopher Faylor <me@cgf.cx>2011-08-25 23:37:39 +0400
commit2691168e9847fd9b14b2bf4eaff597b6b19d593b (patch)
treed293af6cb6944cee5ecae425adf43cbd1ad886ea /winsup
parent603ef545bdbdbf7495e1a0bbabffb8741fc2a5bb (diff)
* cygthread.cc (cygthread::simplestub): Notify that the thread has detached
also in freerange thread case.
Diffstat (limited to 'winsup')
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/cygthread.cc4
2 files changed, 9 insertions, 0 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index db2d9201a..250204b6e 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,8 @@
+2011-08-25 Rafal Zwierz <rzwierz@googlemail.com>
+
+ * cygthread.cc (cygthread::simplestub): Notify that the thread has
+ detached also in freerange thread case.
+
2011-08-25 Corinna Vinschen <corinna@vinschen.de>
* fhandler.cc (fhandler_base::open): Never open files with
diff --git a/winsup/cygwin/cygthread.cc b/winsup/cygwin/cygthread.cc
index 50a265b4b..a98f372a1 100644
--- a/winsup/cygwin/cygthread.cc
+++ b/winsup/cygwin/cygthread.cc
@@ -136,7 +136,11 @@ cygthread::simplestub (VOID *arg)
cygthread *info = (cygthread *) arg;
_my_tls._ctinfo = info;
info->stack_ptr = &arg;
+ HANDLE notify = info->notify_detached;
info->callfunc (true);
+ if (notify)
+ SetEvent (notify);
+
return 0;
}