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

[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: Colin Macdonald
Subject: [Octave-bug-tracker] [bug #43036] popen2 on Windows fails quietly if command writes to stderr
Date: Wed, 27 Aug 2014 09:23:57 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0

Follow-up Comment #3, bug #43036 (project octave):

The reason I used the ping waits was to demonstrate that after the stderr is
written to, fgets returns -1 but errno is still 0 (!).  This is what is
indicated by the "<waiting> (somewhere)" message.

Before that, errno is EINVAL (this is like EAGAIN on unix?).  
Perhaps that EINVAL/EAGAIN thing is a bug too, but if so its an aready known
as per tests in libinterp/corefcn/syscalls.cc.

Probably the s = -1 and errno = 0 condition represents EOF, but I'm not
completely sure.

Anyway, none of that is directly related to this bug.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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