Mercurial > octave
changeset 21756:30d58f5cc7d0
Fix popen2 error on Windows when child writes to stderr (bug #43036)
* lo-sysdep.cc (octave::sys::popen2): Ensure child inherits handle to the
current stderr stream.
author | Mike Miller <mtmiller@octave.org> |
---|---|
date | Fri, 20 May 2016 11:53:15 -0700 |
parents | 08e861873118 |
children | c94fde6d7c27 |
files | liboctave/system/lo-sysdep.cc |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/liboctave/system/lo-sysdep.cc Mon May 16 12:58:35 2016 +0200 +++ b/liboctave/system/lo-sysdep.cc Fri May 20 11:53:15 2016 -0700 @@ -128,6 +128,7 @@ si.dwFlags |= STARTF_USESTDHANDLES; si.hStdInput = childRead; si.hStdOutput = childWrite; + si.hStdError = GetStdHandle (STD_ERROR_HANDLE); // Ignore first arg as it is the command for (int k=1; k<args.numel (); k++)