From 36670cc23435f8c5667fbc993b9d23aa5f17d59a Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Tue, 30 Sep 2008 02:39:07 +0000 Subject: [PATCH] * thread.cc (pthread_mutex::_fixup_after_fork): Reinstate DEBUGGING conditional. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/thread.cc | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 12e1156aa..3bc0b074f 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2008-09-29 Christopher Faylor + + * thread.cc (pthread_mutex::_fixup_after_fork): Reinstate DEBUGGING + conditional. + 2008-09-29 Christopher Faylor * thread.cc (pthread_mutex::_fixup_after_fork): Just reset lock to 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),