fixed crash management
[NeonServV5.git] / src / signal.c
index 8886e6f471eaa11f360b4b51bbe0b42fbf9e03c8..1eb2383e8982069f2955e1f705abc47c9743cf0c 100644 (file)
@@ -90,9 +90,10 @@ static void sigcrash(int signum) {
     }
     putlog(LOGLEVEL_INFO, "hard shutdown...\n");
     exit_daemon();
-    usleep(1000000);
+    usleep(2000000);
     //hard restart
     restart_process();
+    exit(0);
 }
 
 static void sigexit(int signum) {