don't do unix signals on windows

melanie
UbitUmarov 2016-12-12 00:54:41 +00:00
parent 4d1536f1ec
commit da2c1e8aad
1 changed files with 12 additions and 6 deletions

View File

@ -126,11 +126,8 @@ namespace OpenSim
m_log.Info("[OPENSIM MAIN]: Using async_call_method " + Util.FireAndForgetMethod); m_log.Info("[OPENSIM MAIN]: Using async_call_method " + Util.FireAndForgetMethod);
} }
private static Mono.Unix.UnixSignal[] signals = new Mono.Unix.UnixSignal[] private static Mono.Unix.UnixSignal[] signals;
{
// new Mono.Unix.UnixSignal(Mono.Unix.Native.Signum.SIGINT),
new Mono.Unix.UnixSignal(Mono.Unix.Native.Signum.SIGTERM)
};
private Thread signal_thread = new Thread (delegate () private Thread signal_thread = new Thread (delegate ()
{ {
@ -154,7 +151,16 @@ namespace OpenSim
m_log.Info("========================= STARTING OPENSIM ========================="); m_log.Info("========================= STARTING OPENSIM =========================");
m_log.Info("===================================================================="); m_log.Info("====================================================================");
if(!Util.IsWindows())
{
// linux mac os specifics
signals = new Mono.Unix.UnixSignal[]
{
// new Mono.Unix.UnixSignal(Mono.Unix.Native.Signum.SIGINT),
new Mono.Unix.UnixSignal(Mono.Unix.Native.Signum.SIGTERM)
};
signal_thread.Start(); signal_thread.Start();
}
//m_log.InfoFormat("[OPENSIM MAIN]: GC Is Server GC: {0}", GCSettings.IsServerGC.ToString()); //m_log.InfoFormat("[OPENSIM MAIN]: GC Is Server GC: {0}", GCSettings.IsServerGC.ToString());
// http://msdn.microsoft.com/en-us/library/bb384202.aspx // http://msdn.microsoft.com/en-us/library/bb384202.aspx
//GCSettings.LatencyMode = GCLatencyMode.Batch; //GCSettings.LatencyMode = GCLatencyMode.Batch;