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 31928] - Ant <java> task is stopped but a forked child process is not terminated
Date Mon, 28 Mar 2005 21:20:25 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=31928>.
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=31928


jglick@netbeans.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dev@ant.apache.org
         AssignedTo|dev@ant.apache.org          |jglick@netbeans.org
         OS/Version|other                       |All
           Platform|PC                          |All
            Summary|ant java task is terminated |Ant <java> task is stopped
                   |but a forked child process  |but a forked child process
                   |is not terminated           |is not terminated




------- Additional Comments From jglick@netbeans.org  2005-03-28 23:20 -------
#4717969 is not much of a bug, or at least it can be easily worked around - and
it seems Ant *does* work it around it (with a shutdown hook) for normal
command-line usage. For usage in an embedded environment such as within an IDE,
the VM may not be terminated, so you need to also kill a forked child process if
the thread that ran <java> gets killed (ThreadDeath).

I have a simple patch which appears to fix the problem on Linux and Windows.

Note: on Linux, if the forked process uses a shutdown hook, that will still be
run, but not so on Windows. Probably a bit of platform-specific variability
outside of Ant's control.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
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