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>2002-06-27 18:19:30 +0400
committerChristopher Faylor <me@cgf.cx>2002-06-27 18:19:30 +0400
commit196cdd45f6895b3901ec8925020995fbce38bd7f (patch)
tree771e07cbf472a329bf13e2d8af07b92209459eea /winsup
parent5b509758a00995bcda2d1c5864f74a9f02fedbde (diff)
* thread.cc (pthread::create): Added trace printf to get CreateThread
LastError.
Diffstat (limited to 'winsup')
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/thread.cc5
2 files changed, 9 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 4d3acc72b..871ab64f2 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,8 @@
+2002-06-27 Thomas Pfaff <tpfaff@gmx.net>
+
+ * thread.cc (pthread::create): Added trace printf to get CreateThread
+ LastError.
+
2002-06-27 Corinna Vinschen <corinna@vinschen.de>
* mmap.cc (list::match): Check using pagesize aligned size.
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);