Don't try to register HUP on Windows because it fails.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4728 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2007-06-13 18:31:15 +00:00
parent 6db6eef7e1
commit 097a53e534
@@ -24,6 +24,8 @@ package com.threerings.presents.server;
import sun.misc.Signal;
import sun.misc.SignalHandler;
import com.samskivert.util.RunAnywhere;
import static com.threerings.presents.Log.log;
/**
@@ -50,7 +52,9 @@ public class SunSignalHandler extends AbstractSignalHandler
// we don't track and call the chained handlers for INT and HUP because those exit the JVM
// which we do not want to do
Signal.handle(new Signal("INT"), this);
Signal.handle(new Signal("HUP"), this);
if (!RunAnywhere.isWindows()) {
Signal.handle(new Signal("HUP"), this);
}
return true;
}
}