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:
@@ -24,6 +24,8 @@ package com.threerings.presents.server;
|
|||||||
import sun.misc.Signal;
|
import sun.misc.Signal;
|
||||||
import sun.misc.SignalHandler;
|
import sun.misc.SignalHandler;
|
||||||
|
|
||||||
|
import com.samskivert.util.RunAnywhere;
|
||||||
|
|
||||||
import static com.threerings.presents.Log.log;
|
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
|
// 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
|
// which we do not want to do
|
||||||
Signal.handle(new Signal("INT"), this);
|
Signal.handle(new Signal("INT"), this);
|
||||||
Signal.handle(new Signal("HUP"), this);
|
if (!RunAnywhere.isWindows()) {
|
||||||
|
Signal.handle(new Signal("HUP"), this);
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user