From 067dafca0bf3ee80f5e1c9b998d40e6ea468cfa3 Mon Sep 17 00:00:00 2001 From: Joe Mistachkin Date: Thu, 21 May 2015 17:58:49 +0000 Subject: Additional mutex locking/unlocking during fork() to keep things synchronized. --- unix/tclUnixNotfy.c | 2 ++ 1 file changed, 2 insertions(+) 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(¬ifierMutex); } /* @@ -1355,6 +1356,7 @@ AtForkPrepare(void) static void AtForkParent(void) { + Tcl_MutexUnlock(¬ifierMutex); } /* -- cgit v0.12