pier        01/06/25 20:27:34

  Modified:    service/java SimpleService.java
  Log:
  Force shutdown of SimpleService after 5 seconds (Linux doesn't throw an
  IOException when the ServerSocket is closed, but rather waits until the
  first connection gets thru - DARN!)
  
  Revision  Changes    Path
  1.2       +2 -2      jakarta-tomcat-4.0/service/java/SimpleService.java
  
  Index: SimpleService.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-4.0/service/java/SimpleService.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- SimpleService.java        2001/06/26 01:32:23     1.1
  +++ SimpleService.java        2001/06/26 03:27:33     1.2
  @@ -55,7 +55,7 @@
    *                                                                           *
    * ========================================================================= */
   
  -/* @version $Id: SimpleService.java,v 1.1 2001/06/26 01:32:23 pier Exp $ */
  +/* @version $Id: SimpleService.java,v 1.2 2001/06/26 03:27:33 pier Exp $ */
   package org.apache.service.support;
   
   import java.io.*;
  @@ -153,7 +153,7 @@
           this.server.close();
   
           /* Wait for the main thread to exit and dump a message */
  -        this.thread.join();
  +        this.thread.join(5000);
           System.err.println("SimpleService: stopped");
       }
   
  
  
  

Reply via email to