diff options
author | andreas_kupries <akupries@shaw.ca> | 2008-04-02 20:27:55 (GMT) |
---|---|---|
committer | andreas_kupries <akupries@shaw.ca> | 2008-04-02 20:27:55 (GMT) |
commit | 51e0552038c3bb5c4a3e2478a505cc69913730df (patch) | |
tree | a0784249f6c005b1f6c9abf208b5304c4cb8bd3f | |
parent | 8eb8bbbca962b566d0e2525965e62f46a59e5b8c (diff) | |
download | tcl-51e0552038c3bb5c4a3e2478a505cc69913730df.zip tcl-51e0552038c3bb5c4a3e2478a505cc69913730df.tar.gz tcl-51e0552038c3bb5c4a3e2478a505cc69913730df.tar.bz2 |
* generic/tclIO.c (CopyData): Applied patch for the fcopy problem
[Bug 780533], with many thanks to Alexandre Ferrieux
<ferrieux@users.sourceforge.net> for tracking it down and
providing a solution. Still have to convert his test script into
a proper test case.
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | generic/tclIO.c | 4 |
2 files changed, 10 insertions, 2 deletions
@@ -1,3 +1,11 @@ +2008-04-02 Andreas Kupries <andreask@activestate.com> + + * generic/tclIO.c (CopyData): Applied patch for the fcopy problem + [Bug 780533], with many thanks to Alexandre Ferrieux + <ferrieux@users.sourceforge.net> for tracking it down and + providing a solution. Still have to convert his test script into + a proper test case. + 2008-03-27 Daniel Steffen <das@users.sourceforge.net> * unix/tcl.m4 (SunOS-5.1x): fix 64bit support for Sun cc. [Bug 1921166] diff --git a/generic/tclIO.c b/generic/tclIO.c index 53824b0..bf5eed5 100644 --- a/generic/tclIO.c +++ b/generic/tclIO.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: tclIO.c,v 1.61.2.23 2007/05/24 19:31:55 dgp Exp $ + * RCS: @(#) $Id: tclIO.c,v 1.61.2.24 2008/04/02 20:27:58 andreas_kupries Exp $ */ #include "tclInt.h" @@ -7965,7 +7965,7 @@ CopyData(csPtr, mask) * we don't starve the rest of the system. */ - if (cmdPtr) { + if (cmdPtr && (csPtr->toRead != 0)) { /* * The first time we enter this code, there won't be a * channel handler established yet, so do it here. |