harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Geir Magnusson Jr <g...@pobox.com>
Subject Re: [jira] Created: (HARMONY-638) [classlib] Tests hang on in luni : tests.api.java.io.FileTest / test_setReadOnly on Ubunti 6.06
Date Wed, 21 Jun 2006 19:42:15 GMT


Oliver Deakin wrote:
> The example returns once they have fixed it. If you look at the example
> just before the "Why Runtime.exec() hangs" heading (BadExecJava2.java)
> you will see a situation that is almost exactly the same as in the test
> case.
> i.e. an exec followed by a waitFor(), without any reading of streams.
> In this case the exec never returns.
> 
> The later example is how to fix it.

I don't think so.

When they are saying "the exec never returns", they are meaning that
from the POV of the programmer, the spawned thing never returns.

That's why you can do

exec()
do IO
waitFor()
done

However, in our case, when I say "exec never returns" I mean "exec()"
never returns.

so you'd never actually get to "do IO" above, because you are hanging in
exec().

Big difference, right?

geir


---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org


Mime
View raw message