bugfix second attempt: osproc

This commit is contained in:
Araq
2011-05-22 22:05:52 +02:00
parent d8c6e0ed92
commit d0bfc3665f

View File

@@ -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])