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
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/thread.cc')
-rw-r--r--winsup/cygwin/thread.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/winsup/cygwin/thread.cc b/winsup/cygwin/thread.cc
index 607e212f9..39fad36b4 100644
--- a/winsup/cygwin/thread.cc
+++ b/winsup/cygwin/thread.cc
@@ -399,7 +399,10 @@ pthread::create (void *(*func) (void *), pthread_attr *newattr,
this, CREATE_SUSPENDED, &thread_id);
if (!win32_obj_id)
- magic = 0;
+ {
+ thread_printf ("CreateThread failed: this %p LastError %E", this);
+ magic = 0;
+ }
else
{
InterlockedIncrement (&MT_INTERFACE->threadcount);