DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8510>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8510 shutdown hook does not fire in forked java task under JDK1.4 ------- Additional Comments From [EMAIL PROTECTED] 2002-04-26 14:32 ------- 1. running the demo app from the command line works fine 2. running the demo app as a sub-process created by a parent process where the parent is executed from the command line works fine 3. running the demo app from the Ant target <java ... fork="false"> works fine 4. running the demo app from the Ant target <java ... fork="true"> fails with the subprocess still in existance after the parent process has terminated Given that process destruction happens when running from the command line and does not happen when running with the <java ... fork="true"/> suggests that this is an Ant bug and not a JVM bug (even through it feels like a JVM bug) - bottom line is that I have not been able to create the same fail condition outside of Ant. Have updated the demo on http://home.osm.net/020423.html to demonstrate this. Once built the non-fail command line demo can be run using: $ java -classpath test.jar Main With the following output: main MAIN: sub-process created: [EMAIL PROTECTED] MAIN: shutdown hook set The hit ^C MAIN: shutdown hook fired MAIN: subprocess destroyed Invoking <ant fork="true" ... > should result in similar behaviour. I.e. the forked java sub-process should terminate - instead it continues until manually destroyed using the task manager. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
