diff options
author | fvogel <fvogelnew1@free.fr> | 2016-03-21 21:32:29 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2016-03-21 21:32:29 (GMT) |
commit | 3b21ae36fc18189a6cc850c1db2dc0e93e7129b6 (patch) | |
tree | cbcb9fac8b6662a217fd223f5504c2c2315ed447 /unix/tclUnixNotfy.c | |
parent | addefaba01a0a32c7659cd2ae09bd805957cc800 (diff) | |
parent | 349c1fd2676793625cc0037a11d5989b0a591397 (diff) | |
download | tcl-bug_f1253530cd.zip tcl-bug_f1253530cd.tar.gz tcl-bug_f1253530cd.tar.bz2 |
Merged trunkbug_f1253530cd
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 48ba0cc..1457890 100644 --- a/unix/tclUnixNotfy.c +++ b/unix/tclUnixNotfy.c @@ -433,9 +433,11 @@ Tcl_FinalizeNotifier( "unable to write q to triggerPipe"); } close(triggerPipe); + pthread_mutex_lock(¬ifierMutex); while(triggerPipe != -1) { pthread_cond_wait(¬ifierCV, ¬ifierMutex); } + pthread_mutex_unlock(¬ifierMutex); if (notifierThreadRunning) { int result = pthread_join((pthread_t) notifierThread, NULL); |