commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r925470 - /commons/proper/daemon/trunk/src/samples/ProcrunService.java
Date Fri, 19 Mar 2010 23:03:15 GMT
Author: sebb
Date: Fri Mar 19 23:03:14 2010
New Revision: 925470

URL: http://svn.apache.org/viewvc?rev=925470&view=rev
Log:
More info

Modified:
    commons/proper/daemon/trunk/src/samples/ProcrunService.java

Modified: commons/proper/daemon/trunk/src/samples/ProcrunService.java
URL: http://svn.apache.org/viewvc/commons/proper/daemon/trunk/src/samples/ProcrunService.java?rev=925470&r1=925469&r2=925470&view=diff
==============================================================================
--- commons/proper/daemon/trunk/src/samples/ProcrunService.java (original)
+++ commons/proper/daemon/trunk/src/samples/ProcrunService.java Fri Mar 19 23:03:14 2010
@@ -67,6 +67,8 @@ public class ProcrunService implements R
                 if (thrd != null) {
                     log("Interrupting the thread");
                     thrd.interrupt();
+                } else {
+                    log("No thread to interrupt");
                 }
             } else {
                 usage();
@@ -97,4 +99,8 @@ public class ProcrunService implements R
         DateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss ");
         System.out.println(df.format(new Date())+msg);
     }
+    
+    protected void finalize(){
+        log("Finalize called from thread "+Thread.currentThread());
+    }
 }



Mime
View raw message