Make ROBUST not hang on exit in recent Mono versions. Make the logfile config
setting/commandline option actually work.trunk
parent
ae8d3ab22e
commit
ff35a3378e
|
@ -202,9 +202,13 @@ namespace OpenSim.Server.Base
|
|||
if (fileAppender != null)
|
||||
{
|
||||
if (startupConfig != null)
|
||||
fileAppender.File = startupConfig.GetString("logfile",
|
||||
fileName + ".log");
|
||||
// assemblyName.Name + ".log");
|
||||
{
|
||||
|
||||
fileName = startupConfig.GetString("logfile", fileName+".log");
|
||||
fileName = Path.GetFullPath(Path.Combine(".", fileName));
|
||||
fileAppender.File = fileName;
|
||||
fileAppender.ActivateOptions();
|
||||
}
|
||||
}
|
||||
|
||||
// Register the quit command
|
||||
|
|
|
@ -87,7 +87,11 @@ namespace OpenSim.Server
|
|||
m_log.InfoFormat("[SERVER]: Failed to load {0}", conn);
|
||||
}
|
||||
}
|
||||
return m_Server.Run();
|
||||
int res = m_Server.Run();
|
||||
|
||||
Environment.Exit(res);
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue