Author: sgoeschl
Date: Wed Jan 23 14:13:53 2008
New Revision: 614705

URL: http://svn.apache.org/viewvc?rev=614705&view=rev
Log:
Complain on System.err if removeShutdownHook returns false. Seems better than 
doing nothing plus a comment what to do ... :-)

Modified:
    
commons/sandbox/exec/trunk/src/main/java/org/apache/commons/exec/ShutdownHookProcessDestroyer.java

Modified: 
commons/sandbox/exec/trunk/src/main/java/org/apache/commons/exec/ShutdownHookProcessDestroyer.java
URL: 
http://svn.apache.org/viewvc/commons/sandbox/exec/trunk/src/main/java/org/apache/commons/exec/ShutdownHookProcessDestroyer.java?rev=614705&r1=614704&r2=614705&view=diff
==============================================================================
--- 
commons/sandbox/exec/trunk/src/main/java/org/apache/commons/exec/ShutdownHookProcessDestroyer.java
 (original)
+++ 
commons/sandbox/exec/trunk/src/main/java/org/apache/commons/exec/ShutdownHookProcessDestroyer.java
 Wed Jan 23 14:13:53 2008
@@ -93,8 +93,7 @@
                        boolean removed = 
Runtime.getRuntime().removeShutdownHook(
                                        destroyProcessThread);
                        if (!removed) {
-                               // System.err.println("Could not remove 
shutdown hook");
-                               // TODO should we just ignore?
+                               System.err.println("Could not remove shutdown 
hook");
                        }
                        /*
                         * start the hook thread, a unstarted thread may not be 
eligible for


Reply via email to