diff options
author | Joe Mistachkin <joe@mistachkin.com> | 2015-05-21 17:58:49 (GMT) |
---|---|---|
committer | Joe Mistachkin <joe@mistachkin.com> | 2015-05-21 17:58:49 (GMT) |
commit | 067dafca0bf3ee80f5e1c9b998d40e6ea468cfa3 (patch) | |
tree | fa305db5c63a730880c5fdac2c89385d97f86470 /unix | |
parent | 7fa687177b07fd7f6b98ae321402848466ce6d17 (diff) | |
download | tcl-067dafca0bf3ee80f5e1c9b998d40e6ea468cfa3.zip tcl-067dafca0bf3ee80f5e1c9b998d40e6ea468cfa3.tar.gz tcl-067dafca0bf3ee80f5e1c9b998d40e6ea468cfa3.tar.bz2 |
Additional mutex locking/unlocking during fork() to keep things synchronized.
Diffstat (limited to 'unix')
-rw-r--r-- | unix/tclUnixNotfy.c | 2 |
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(¬ifierMutex); } /* @@ -1355,6 +1356,7 @@ AtForkPrepare(void) static void AtForkParent(void) { + Tcl_MutexUnlock(¬ifierMutex); } /* |