diff options
author | nijtmans@users.sourceforge.net <jan.nijtmans> | 2013-07-25 08:29:56 (GMT) |
---|---|---|
committer | nijtmans@users.sourceforge.net <jan.nijtmans> | 2013-07-25 08:29:56 (GMT) |
commit | d4efec4b8c3ac2b71d087a356e558631c594cd59 (patch) | |
tree | 4193949102fcd09226fa65f46f26d36b6da1b01f /unix/tclUnixNotfy.c | |
parent | 7dfb59e8e1660171f84267ec86925473092132e8 (diff) | |
download | tcl-d4efec4b8c3ac2b71d087a356e558631c594cd59.zip tcl-d4efec4b8c3ac2b71d087a356e558631c594cd59.tar.gz tcl-d4efec4b8c3ac2b71d087a356e558631c594cd59.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.c | 2 |
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 */ |