Sisyphus repository
Last update: 22 october 2019 | SRPMs: 17517 | Visits: 15399312
en ru br
ALT Linux repos
S:2.3-alt3_20jpp8
5.0: 2.3-alt1_3jpp5

Group :: Development/Other
RPM: brazil

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: brazil-remove-proprietary-sun-api.patch
Download


--- srcs/sunlabs/brazil/sunlabs/RestartHandler.java	2007-12-24 13:44:40.000000000 +0000
+++ srcs/sunlabs/brazil/sunlabs/RestartHandler.java	2007-12-24 13:45:40.000000000 +0000
@@ -49,8 +49,8 @@
 import sunlabs.brazil.server.Request;
 import sunlabs.brazil.server.Server;
 
-import sun.misc.Signal;
-import sun.misc.SignalHandler;
+//import sun.misc.Signal;
+//import sun.misc.SignalHandler;
 
 /**
  * Restart the server when a sigHUP is received.
@@ -81,7 +81,8 @@
  * </dl>
  */
 
-public class RestartHandler implements Handler, SignalHandler {
+//public class RestartHandler implements Handler, SignalHandler {
+public class RestartHandler implements Handler {
     Server server;		// reference to our server
     String prefix;		// our name in the config file
     boolean shouldKeep;		// keep existing config
@@ -99,7 +100,7 @@
 	    configFile = new File(file);
 	}
 	lastModified = 0;	// in case we've been started differently
-	Signal.handle(new Signal("HUP"), this);
+//	Signal.handle(new Signal("HUP"), this);
 	return true;
     }
 
@@ -111,7 +112,7 @@
     /**
      * Restart the server after re-reading the config file
      */
-
+/*
     public void
     handle(Signal sig) {
 	server.log(Server.LOG_DIAGNOSTIC, prefix,
@@ -148,4 +149,5 @@
 	    }
 	}
     }
+    */
 }
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin