diff options
author | das <das@noemail.net> | 2006-08-18 11:23:31 (GMT) |
---|---|---|
committer | das <das@noemail.net> | 2006-08-18 11:23:31 (GMT) |
commit | 4fc1dd2047cb3e5dd7f9b41dab19e6a45b107199 (patch) | |
tree | deed8c8f9e32409fb4215df0ce36cdf36ed2cfc9 /unix/tclUnixChan.c | |
parent | 59f1e34dfc24adf491cb5271fe5756e8a9c16f95 (diff) | |
download | tcl-4fc1dd2047cb3e5dd7f9b41dab19e6a45b107199.zip tcl-4fc1dd2047cb3e5dd7f9b41dab19e6a45b107199.tar.gz tcl-4fc1dd2047cb3e5dd7f9b41dab19e6a45b107199.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: 625eafea5d6dec329e99009445b1605f778bde90
Diffstat (limited to 'unix/tclUnixChan.c')
-rw-r--r-- | unix/tclUnixChan.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/unix/tclUnixChan.c b/unix/tclUnixChan.c index 1508b39..2be6cbc 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.42.2.6 2005/11/27 02:34:42 das Exp $ + * RCS: @(#) $Id: tclUnixChan.c,v 1.42.2.7 2006/08/18 11:23:31 das Exp $ */ #include "tclInt.h" /* Internal definitions for Tcl. */ @@ -3282,6 +3282,9 @@ TclUnixWaitForFile(fd, mask, timeout) if (timeout == 0) { break; } + if (timeout < 0) { + continue; + } /* * The select returned early, so we need to recompute the timeout. |