Browse Source

log level increased for other messages on server failure

Jiri Kuthan 18 years ago
parent
commit
80eaff4448
1 changed files with 3 additions and 3 deletions
  1. 3 3
      main.c

+ 3 - 3
main.c

@@ -631,18 +631,18 @@ void handle_sigs()
 		case SIGCHLD:
 		case SIGCHLD:
 			while ((chld=waitpid( -1, &chld_status, WNOHANG ))>0) {
 			while ((chld=waitpid( -1, &chld_status, WNOHANG ))>0) {
 				if (WIFEXITED(chld_status))
 				if (WIFEXITED(chld_status))
-					LOG(L_DEFAULT, "child process %d exited normally,"
+					LOG(L_ALERT, "child process %d exited normally,"
 							" status=%d\n", chld,
 							" status=%d\n", chld,
 							WEXITSTATUS(chld_status));
 							WEXITSTATUS(chld_status));
 				else if (WIFSIGNALED(chld_status)) {
 				else if (WIFSIGNALED(chld_status)) {
-					LOG(L_DEFAULT, "child process %d exited by a signal"
+					LOG(L_ALERT, "child process %d exited by a signal"
 							" %d\n", chld, WTERMSIG(chld_status));
 							" %d\n", chld, WTERMSIG(chld_status));
 #ifdef WCOREDUMP
 #ifdef WCOREDUMP
 					LOG(L_ALERT, "core was %sgenerated\n",
 					LOG(L_ALERT, "core was %sgenerated\n",
 							 WCOREDUMP(chld_status) ?  "" : "not " );
 							 WCOREDUMP(chld_status) ?  "" : "not " );
 #endif
 #endif
 				}else if (WIFSTOPPED(chld_status))
 				}else if (WIFSTOPPED(chld_status))
-					LOG(L_DEFAULT, "child process %d stopped by a"
+					LOG(L_ALERT, "child process %d stopped by a"
 								" signal %d\n", chld,
 								" signal %d\n", chld,
 								 WSTOPSIG(chld_status));
 								 WSTOPSIG(chld_status));
 			}
 			}