Windows ginput function [Was: fopen doesn't return when opening a fifo!!]

David Bateman adb014 at gmail.com
Tue Apr 1 18:13:37 CDT 2008


David Bateman wrote:
> Thinking about the issue of how to get around the lack of  mkfifo on
> Windows, why can't we use the existing stream that is open to the
> gnuplot process to pass the data back from gnuplot to Octave rather than
> opening another fifo or chat file? This would mean that the plot_stream
> would be opened with popen2 rather than popen and we'd have both an
> input and output stream. The major advantage of this is that there is no
> loop probing the contents of a chat file under windows that causes
> Octave to run at 100% during a ginput operation.

What about something like the attached? Its not a changeset yet as I
haven't written the changelog and I'm not sure its the right thing to
do. Will there be any nasty effects of using popen2 to open a pipe to
the gnuplot process for example? Comments?

D.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch
Url: https://www.cae.wisc.edu/pipermail/bug-octave/attachments/20080402/bfd08c87/attachment.ksh 


More information about the Bug-octave mailing list