ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 5003] - exec task does not return after executed command finished on Windows only
Date Wed, 08 Dec 2004 11:11:26 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=5003>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=5003





------- Additional Comments From peterreilly@apache.org  2004-12-08 12:11 -------
Ok, I see what you are saying now.
On windows child processes keep the std and std outout file handles of
the master process (or at least Runtime#exec() is implemented in this
way), on Unix this does not happen.

This means that one can start a master process from ant. This master
process can create a number of child processes. The master process
then terminates, but the child processes of the master process are
still running. On Unix, the exec task while end at this time, but
on windows this will not happen, in fact the exec task will wait until
all the children of the master process have terminated - this is *not* good,
especially for something like rmid.

I have added an attachment that shows the problem.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message