summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2013-07-25 08:29:56 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2013-07-25 08:29:56 (GMT)
commit889454ec0641c77928cc1967516e497d81703a7f (patch)
tree4193949102fcd09226fa65f46f26d36b6da1b01f
parent752ab085d6a8bfb6cf8e6660e49398602b724801 (diff)
downloadtcl-889454ec0641c77928cc1967516e497d81703a7f.zip
tcl-889454ec0641c77928cc1967516e497d81703a7f.tar.gz
tcl-889454ec0641c77928cc1967516e497d81703a7f.tar.bz2
Make sure that the notifierMutex and notifierCV in a forked child cannot block anything, even though the initialization of the Notifier Thread in the parent is not finished yet.
-rw-r--r--unix/tclUnixNotfy.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/unix/tclUnixNotfy.c b/unix/tclUnixNotfy.c
index f414c3f..ec721ca 100644
--- a/unix/tclUnixNotfy.c
+++ b/unix/tclUnixNotfy.c
@@ -1335,6 +1335,8 @@ AtForkParent(void)
static void
AtForkChild(void)
{
+ notifierMutex = NULL;
+ notifierCV = NULL;
Tcl_InitNotifier();
}
#endif /* HAVE_PTHREAD_ATFORK */