summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2008-09-30 02:39:07 +0000
committerChristopher Faylor <me@cgf.cx>2008-09-30 02:39:07 +0000
commit36670cc23435f8c5667fbc993b9d23aa5f17d59a (patch)
tree84b52fd0677966b9b5fcb5232a6992594ce3a4d5
parent18f43099f7d52612d8fc38aa55f09a37a826583d (diff)
downloadcygnal-36670cc23435f8c5667fbc993b9d23aa5f17d59a.tar.gz
cygnal-36670cc23435f8c5667fbc993b9d23aa5f17d59a.tar.bz2
cygnal-36670cc23435f8c5667fbc993b9d23aa5f17d59a.zip
* thread.cc (pthread_mutex::_fixup_after_fork): Reinstate DEBUGGING
conditional.
-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),