summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authorjan.nijtmans <jan.nijtmans@noemail.net>2013-07-25 08:29:56 (GMT)
committerjan.nijtmans <jan.nijtmans@noemail.net>2013-07-25 08:29:56 (GMT)
commit4caaf80707d25ad5f909eb2d9fab744453259a01 (patch)
tree4193949102fcd09226fa65f46f26d36b6da1b01f /unix
parent9b846b33a8c20224917b310dd7d0e688d0b5b38b (diff)
downloadtcl-4caaf80707d25ad5f909eb2d9fab744453259a01.zip
tcl-4caaf80707d25ad5f909eb2d9fab744453259a01.tar.gz
tcl-4caaf80707d25ad5f909eb2d9fab744453259a01.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.
FossilOrigin-Name: 116f5be24c11c258ace4d0c1e4f7eca573495429
Diffstat (limited to 'unix')
-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 */