Changelog

2002-06-27  Thomas Pfaff  <[EMAIL PROTECTED]>

        *thread.cc (pthread::create): Added trace printf to get
        CreateThread LastError.
diff -urp src.old/winsup/cygwin/thread.cc src/winsup/cygwin/thread.cc
--- src.old/winsup/cygwin/thread.cc     Mon Jun 24 03:12:38 2002
+++ src/winsup/cygwin/thread.cc Thu Jun 27 09:19:36 2002
@@ -399,7 +399,10 @@ pthread::create (void *(*func) (void *),
                                this, CREATE_SUSPENDED, &thread_id);
 
   if (!win32_obj_id)
-    magic = 0;
+    {
+      thread_printf ("CreateThread failed: this %p LastError %d", this, 
+GetLastError());
+      magic = 0;
+    }
   else
     {
       InterlockedIncrement (&MT_INTERFACE->threadcount);

Reply via email to