summaryrefslogtreecommitdiffstats
path: root/generic/tclPipe.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2017-09-01 01:44:09 (GMT)
committerdgp <dgp@users.sourceforge.net>2017-09-01 01:44:09 (GMT)
commit25bef43b39f0af4f1729dd82573fc4bd9b44fd7f (patch)
tree997417738cae50b8be6b50850513d5f7a78160c8 /generic/tclPipe.c
parent38b319739dd65940f0c634509f00ad6dc5cb98de (diff)
parent1997e71e603d7d479143da6fdf0db628f8f9ba82 (diff)
downloadtcl-25bef43b39f0af4f1729dd82573fc4bd9b44fd7f.zip
tcl-25bef43b39f0af4f1729dd82573fc4bd9b44fd7f.tar.gz
tcl-25bef43b39f0af4f1729dd82573fc4bd9b44fd7f.tar.bz2
merge trunk
Diffstat (limited to 'generic/tclPipe.c')
-rw-r--r--generic/tclPipe.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/generic/tclPipe.c b/generic/tclPipe.c
index d6cd188..b679ec4 100644
--- a/generic/tclPipe.c
+++ b/generic/tclPipe.c
@@ -668,7 +668,13 @@ TclCreatePipeline(
if (*p == '>') {
p++;
atOK = 0;
- flags = O_WRONLY | O_CREAT;
+
+ /*
+ * Note that the O_APPEND flag only has an effect on POSIX
+ * platforms. On Windows, we just have to carry on regardless.
+ */
+
+ flags = O_WRONLY | O_CREAT | O_APPEND;
}
if (errorClose != 0) {
errorClose = 0;