fixed some missing newlines (\n) in putlog lines
[NeonServV5.git] / src / signal.c
index 9ec12f05237433376267fe2556958c4a859d8250..8886e6f471eaa11f360b4b51bbe0b42fbf9e03c8 100644 (file)
@@ -24,7 +24,7 @@ static void sigcrash();
 static void sigexit();
 
 void sighandler(int signum) {
-    putlog(LOGLEVEL_INFO, "Received Signal %d", signum);
+    putlog(LOGLEVEL_INFO, "Received Signal %d\n", signum);
     signal(signum, SIG_DFL);
     switch(signum) {
         case SIGABRT:
@@ -64,13 +64,13 @@ static void sigcrash(int signum) {
             signame = "SIGUNKNOWN";
             break;
     }
-    putlog(LOGLEVEL_ERROR, "NeonServ process crashed (%s)", signame);
+    putlog(LOGLEVEL_ERROR, "NeonServ process crashed (%s)\n", signame);
     #ifndef WIN32
     char gcore[50];
     sprintf(gcore, "gcore %u", getpid());
     system(gcore); //generate core file
     coregen = "core file generated.";
-    putlog(LOGLEVEL_ERROR | LOGLEVEL_INFO, "generated core file.");
+    putlog(LOGLEVEL_ERROR | LOGLEVEL_INFO, "generated core file.\n");
     #endif
     char *alertchan = get_string_field("General.alertchan");
     if(alertchan) {
@@ -88,7 +88,7 @@ static void sigcrash(int signum) {
             bot->flags &= SOCKET_FLAG_CONNECTED;
         }
     }
-    putlog(LOGLEVEL_INFO, "hard shutdown...");
+    putlog(LOGLEVEL_INFO, "hard shutdown...\n");
     exit_daemon();
     usleep(1000000);
     //hard restart