summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2011-05-22 22:05:52 +0200
committerAraq <rumpf_a@web.de>2011-05-22 22:05:52 +0200
commitd0bfc3665fd0131dad516d2fcd7cfe73c3a6f122 (patch)
treec02f3c2eda7b31487db3bfd050a9e791af2feb84
parentd8c6e0ed924e844e9671c61434efc3f0e1269e73 (diff)
downloadNim-d0bfc3665fd0131dad516d2fcd7cfe73c3a6f122.tar.gz
bugfix second attempt: osproc
-rwxr-xr-xlib/pure/osproc.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/pure/osproc.nim b/lib/pure/osproc.nim
index 7981720d9..d74cf1fdc 100755
--- a/lib/pure/osproc.nim
+++ b/lib/pure/osproc.nim
@@ -514,6 +514,7 @@ elif not defined(useNimRtl):
     result.outputHandle = p_stdout[readIdx]
     if poStdErrToStdOut in options:
       result.errorHandle = result.outputHandle
+      discard close(p_stderr[readIdx])
     else:
       result.errorHandle = p_stderr[readIdx]
     discard close(p_stderr[writeIdx])