octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #48149] popen2 on Windows requires delay


From: Rik
Subject: [Octave-bug-tracker] [bug #48149] popen2 on Windows requires delay
Date: Mon, 6 Jun 2016 22:41:08 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0

Follow-up Comment #2, bug #48149 (project octave):

If I don't write anything to the input side of the pipe, but instead read from
the output, then it returns -1.  This seems to set the EOF on the pipe because
if I then write to the input side the output always returns -1.

It seems that this sequence is required

1) popen2()
2) write to input
3) flush input or close input
4) pause
5) read from output

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?48149>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]