summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixNotfy.c
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)
commit69fbd6c489ee246d40067e6a6394419ecb9a6b07 (patch)
tree4193949102fcd09226fa65f46f26d36b6da1b01f /unix/tclUnixNotfy.c
parent420d55eddd9dfa6bfce1d6977a83e8f97ff4a8e7 (diff)
downloadtcl-69fbd6c489ee246d40067e6a6394419ecb9a6b07.zip
tcl-69fbd6c489ee246d40067e6a6394419ecb9a6b07.tar.gz
tcl-69fbd6c489ee246d40067e6a6394419ecb9a6b07.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.
Diffstat (limited to 'unix/tclUnixNotfy.c')
-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 */