summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixNotfy.c
diff options
context:
space:
mode:
authorJoe Mistachkin <joe@mistachkin.com>2015-05-21 17:58:49 (GMT)
committerJoe Mistachkin <joe@mistachkin.com>2015-05-21 17:58:49 (GMT)
commit067dafca0bf3ee80f5e1c9b998d40e6ea468cfa3 (patch)
treefa305db5c63a730880c5fdac2c89385d97f86470 /unix/tclUnixNotfy.c
parent7fa687177b07fd7f6b98ae321402848466ce6d17 (diff)
downloadtcl-067dafca0bf3ee80f5e1c9b998d40e6ea468cfa3.zip
tcl-067dafca0bf3ee80f5e1c9b998d40e6ea468cfa3.tar.gz
tcl-067dafca0bf3ee80f5e1c9b998d40e6ea468cfa3.tar.bz2
Additional mutex locking/unlocking during fork() to keep things synchronized.
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 aa32915..9186f33 100644
--- a/unix/tclUnixNotfy.c
+++ b/unix/tclUnixNotfy.c
@@ -1334,6 +1334,7 @@ NotifierThreadProc(
static void
AtForkPrepare(void)
{
+ Tcl_MutexLock(&notifierMutex);
}
/*
@@ -1355,6 +1356,7 @@ AtForkPrepare(void)
static void
AtForkParent(void)
{
+ Tcl_MutexUnlock(&notifierMutex);
}
/*