summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixChan.c
diff options
context:
space:
mode:
authordas <das@noemail.net>2006-08-18 11:23:22 (GMT)
committerdas <das@noemail.net>2006-08-18 11:23:22 (GMT)
commit165c82ec9648f6c91a6d95c566fdb36506daee61 (patch)
tree8ac3978c2740341ca4f922b5b8351092d7d9c2c4 /unix/tclUnixChan.c
parent1525adc1605310b87c7b69a9c940e3de5172c716 (diff)
downloadtcl-165c82ec9648f6c91a6d95c566fdb36506daee61.zip
tcl-165c82ec9648f6c91a6d95c566fdb36506daee61.tar.gz
tcl-165c82ec9648f6c91a6d95c566fdb36506daee61.tar.bz2
* unix/tclUnixChan.c (TclUnixWaitForFile): with timeout < 0, if select()
returns early (e.g. due to a signal), call it again instead of returning a timeout result. Fixes intermittent event-13.8 failures. FossilOrigin-Name: a837931e2dee674bc02fe6af3458afa830277d84
Diffstat (limited to 'unix/tclUnixChan.c')
-rw-r--r--unix/tclUnixChan.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/unix/tclUnixChan.c b/unix/tclUnixChan.c
index aacb889..552d819 100644
--- a/unix/tclUnixChan.c
+++ b/unix/tclUnixChan.c
@@ -10,7 +10,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclUnixChan.c,v 1.69 2006/03/27 18:08:51 andreas_kupries Exp $
+ * RCS: @(#) $Id: tclUnixChan.c,v 1.70 2006/08/18 11:23:22 das Exp $
*/
#include "tclInt.h" /* Internal definitions for Tcl. */
@@ -3254,6 +3254,9 @@ TclUnixWaitForFile(
if (timeout == 0) {
break;
}
+ if (timeout < 0) {
+ continue;
+ }
/*
* The select returned early, so we need to recompute the timeout.