octave-maintainers
[Top][All Lists]
Advanced

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

Re: 2.9.11?


From: John W. Eaton
Subject: Re: 2.9.11?
Date: Wed, 18 Apr 2007 23:32:02 -0400

On 18-Apr-2007, Daniel J Sebald wrote:

| Hmm, doesn't always hang, however.  Only sometimes.  Is there something not 
good 
| about this test?  Here is probably what is hanging:
| 
| %!  do
| %!     if (!isunix())
| %!       errno (0);
| %!     endif
| %!     s = fgets (out);
| %!     if (ischar (s))
| %!       idx++;
| %!       str{idx} = s;
| %!     elseif (errno () == EAGAIN)
| %!       sleep (0.1);
| %!       fclear (out);
| %!     else
| %!       done = true;
| %!     endif
| %!   until (done)
| 
| But what happens if an error is return, say the sort routine outside of 
Octave 
| isn't complete by time of the first "ischar()" test.  The errno() returns 
EAGAIN 
| and in the process of waiting 0.1 seconds with sleep() the sort application 
| finishes.  But then the "fclear(out)" might clear "data available" so that 
| EAGAIN comes back the next time, after which point it is simply an infinite 
loop.

Does it help to move the fclear before the call to sleep?

| The only other unusual results are the scripts/elfun/acscd.m and asecd.m 
tests 
| with the division by zero problem that hangs.  And this one, which I don't 
know 
| if is really a "compilation" bug:
| 
|    test_quad.m ............................................ ABNORMAL RETURN 
FROM 
| DQAGP

I changed the lower limit of integration for this test so the warning
should be avoided now.

jwe


reply via email to

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