ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 46805] ant exec hangs when invoking "asadmin.bat start-domain"
Date Mon, 14 Jun 2010 10:57:52 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=46805

--- Comment #12 from Stefan Bodewig <bodewig@apache.org> 2010-06-14 06:57:49 EDT ---
The file src/tests/antunit/taskdefs/exec/exec-test.xml in Ant's svn contains
an AntUnit test that demonstrates bug 5003 - it forks a process which in turn
frokes a child process and exits after writing "finished".

Ant has already incorporated the joint timeout and some other changes that
ensure Ant doesn't wait for the forked child process (which sleeps for 20
seconds).  The test is called testDoesntWaitForChildren

If I apply the third part of Stefan's suggested patch we don't see the
"finished" output anymore, that is we lose output.

So far I hadn't seen that Stefan's second part called process.destroy - this
seems to be not necessary since either process.waitFor has succeeded
or process.destroy has been called in Execute#waitFor's exception handler.

If I remove the closeStreams call completely I do get the "finished" line
- or at least I seem to be getting it in repeated tests, there could still be
a race condition.  I'll run the full testsuite on Windows and Linux to see
any ill effects show up.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Mime
View raw message