[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #43036] popen2 on Windows fails quietly if com
From: |
Tatsuro MATSUOKA |
Subject: |
[Octave-bug-tracker] [bug #43036] popen2 on Windows fails quietly if command writes to stderr |
Date: |
Tue, 05 Apr 2016 15:38:15 +0000 |
User-agent: |
Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.110 Safari/537.36 |
Follow-up Comment #10, bug #43036 (project octave):
Looking into the code of octave_popen2 in lo-sysdep.cc.
http://octave.org/doxygen/4.1/d9/d15/lo-sysdep_8cc_source.html
The codes seem not to consider stderr. This is natural considering the
original motivation of implementation of popen2. The motivation of
implementation of popen2 on octave for windows to uses bi-directional pipe to
communicate with gnuplot.exe. Therefore the popen2 function only takes in
account communicating with stdin and stdout but not with stderr.
I'm not familiar with the win32 api programing. However, there are examples to
communicate not only with stdin and stdout but also with stderr. (I have found
them written in Japanese so that I do not refer them.)
Perhaps for those who are familiar with win32 api programing, the correction
of the code of the octave_popen2 for stderr is not a hard work. As I told,
unfortunately I have little experience with win32 api programming. We need
help from those who are good experience of win32 api programing.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?43036>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/