Explorar el Código

automatische speicherabbild erstellung bei server crashes

Kolja Strohm hace 6 años
padre
commit
908d7e0a3c
Se han modificado 2 ficheros con 5 adiciones y 0 borrados
  1. 1 0
      EditorServer/DateienEditor.cpp
  2. 4 0
      EditorServer/main.cpp

+ 1 - 0
EditorServer/DateienEditor.cpp

@@ -944,6 +944,7 @@ bool DateienEditor::prozessMessage( SKlient *zKlient )
         for( int i = 0; i < anz; i++ )
         {
             Polygon2D pol;
+            pol.schwerpunkt = 0;
             pol.vertex = new Array< Vertex >();
             pol.tKordinaten = new Array< Vertex >();
             zKlient->getNachrichtEncrypted( (char*)&pol.transparent, 1 );

+ 4 - 0
EditorServer/main.cpp

@@ -3,9 +3,13 @@
 #include <iostream>
 #include <fstream>
 #include <Globals.h>
+#include <sys/resource.h>
 
 int main()
 {
+	struct rlimit core_limits;
+	core_limits.rlim_cur = core_limits.rlim_max = RLIM_INFINITY;
+	setrlimit(RLIMIT_CORE, &core_limits);
 #ifdef DEBUG
     chdir( "/test/editor" );
 #endif