diff options
author | ferrieux <ferrieux@users.sourceforge.net> | 2011-09-21 20:54:26 (GMT) |
---|---|---|
committer | ferrieux <ferrieux@users.sourceforge.net> | 2011-09-21 20:54:26 (GMT) |
commit | 55d006f52db784e77fdc99b6bcaceeae689da92c (patch) | |
tree | a35e2c748975016911168d571a82972f4078b3c4 /generic/tclIO.c | |
parent | fa18389469985cb82730db620495c814e434e619 (diff) | |
download | tcl-55d006f52db784e77fdc99b6bcaceeae689da92c.zip tcl-55d006f52db784e77fdc99b6bcaceeae689da92c.tar.gz tcl-55d006f52db784e77fdc99b6bcaceeae689da92c.tar.bz2 |
[Bug 3412487]: Now short reads are allowed in synchronous fcopy, avoid mistaking them as nonblocking ones.
Diffstat (limited to 'generic/tclIO.c')
-rw-r--r-- | generic/tclIO.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclIO.c b/generic/tclIO.c index ae1b89a..082cf70 100644 --- a/generic/tclIO.c +++ b/generic/tclIO.c @@ -9215,8 +9215,8 @@ CopyData( if ((size == 0) && Tcl_Eof(inChan) && !(cmdPtr && (mask == 0))) { break; } - if (((!Tcl_Eof(inChan)) || (cmdPtr && (mask == 0))) && - !(mask & TCL_READABLE)) { + if (cmdPtr && (!Tcl_Eof(inChan) || (mask == 0)) && + !(mask & TCL_READABLE)) { if (mask & TCL_WRITABLE) { Tcl_DeleteChannelHandler(outChan, CopyEventProc, csPtr); } |