aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2013-04-09 22:38:47 +0100
committerJustin Clark-Casey (justincc)2013-04-09 22:38:47 +0100
commit8e04c752fc2bc1f27fce224d2aec3ea72edbc2cc (patch)
tree48789da914675dfc4e522c0631cbd7531e155200 /OpenSim
parentFix taking (and rezzing) of coalesced objects in the non-root subregions of m... (diff)
downloadopensim-SC_OLD-8e04c752fc2bc1f27fce224d2aec3ea72edbc2cc.zip
opensim-SC_OLD-8e04c752fc2bc1f27fce224d2aec3ea72edbc2cc.tar.gz
opensim-SC_OLD-8e04c752fc2bc1f27fce224d2aec3ea72edbc2cc.tar.bz2
opensim-SC_OLD-8e04c752fc2bc1f27fce224d2aec3ea72edbc2cc.tar.xz
If OpenSimulator is writing a PID file and finds the file already present on startup, logging an error since this is commonly due to an unclean shutdown.
Unclean shutdown can cause constantly moving objects to disappear if an OAR has just been loaded and they have not reached persistence time threshold, among other problems.
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Framework/Servers/ServerBase.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/OpenSim/Framework/Servers/ServerBase.cs b/OpenSim/Framework/Servers/ServerBase.cs
index 657444c..2c4a687 100644
--- a/OpenSim/Framework/Servers/ServerBase.cs
+++ b/OpenSim/Framework/Servers/ServerBase.cs
@@ -76,6 +76,11 @@ namespace OpenSim.Framework.Servers
76 76
77 protected void CreatePIDFile(string path) 77 protected void CreatePIDFile(string path)
78 { 78 {
79 if (File.Exists(path))
80 m_log.ErrorFormat(
81 "[SERVER BASE]: Previous pid file {0} still exists on startup. Possibly previously unclean shutdown.",
82 path);
83
79 try 84 try
80 { 85 {
81 string pidstring = System.Diagnostics.Process.GetCurrentProcess().Id.ToString(); 86 string pidstring = System.Diagnostics.Process.GetCurrentProcess().Id.ToString();