Bug 55208 - Terminating Java process in Console does not run shutdownhandler
Summary: Terminating Java process in Console does not run shutdownhandler
Status: RESOLVED DUPLICATE of bug 38016
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 2.1.1   Edit
Hardware: PC Windows All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Debug-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-18 06:36 EST by Andreas Motzek CLA
Modified: 2004-05-03 13:56 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Motzek CLA 2004-03-18 06:36:09 EST
As I understand it, a Java process running in Console is a special 
org.eclipse.debug.internal.core.RuntimeProcess that wraps a java.lang.Process. 
Terminating the RuntimeProcess calls java.lang.Process.destroy(). 
Unfortunately, Process.destroy() does not run the shutdownhandlers on Windows 
due to Java Bug Id 4485742. And more unfortunately, this bug is closed. Perhaps 
you can convince Sun to reopen it. Spending java.lang.Process an additional exit
() method (proposed in jerhewet's comment on the bug) seems to be a good idea.
Comment 1 Olivier Thomann CLA 2004-03-18 13:01:03 EST
Move to JDT/Debug
Comment 2 Darin Wright CLA 2004-05-03 13:56:24 EDT

*** This bug has been marked as a duplicate of 38016 ***