summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 12e1156aa..3bc0b074f 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,5 +1,10 @@
2008-09-29 Christopher Faylor <me+cygwin@cgf.cx>
+ * thread.cc (pthread_mutex::_fixup_after_fork): Reinstate DEBUGGING
+ conditional.
+
+2008-09-29 Christopher Faylor <me+cygwin@cgf.cx>
+
* thread.cc (pthread_mutex::_fixup_after_fork): Just reset lock to
pristine state after fork. Don't recreate a mutex since it may not
actually be needed.
diff --git a/winsup/cygwin/thread.cc b/winsup/cygwin/thread.cc
index 08ac0c501..24f4adcce 100644
--- a/winsup/cygwin/thread.cc
+++ b/winsup/cygwin/thread.cc
@@ -1680,7 +1680,10 @@ pthread_mutex::_fixup_after_fork ()
owner = NULL;
win32_obj_id = NULL;
condwaits = 0;
- tid = 0; /* Don't know the tid after a fork */
+#ifdef DEBUGGING
+ tid = 0xffffffff; /* Don't know the tid after a fork */
+#endif
+
}
pthread_mutexattr::pthread_mutexattr ():verifyable_object (PTHREAD_MUTEXATTR_MAGIC),