Pārlūkot izejas kodu

NRPE should not start if cannot write pid file

Fix for issue http://tracker.nagios.org/view.php?id=218
John C. Frickson 10 gadi atpakaļ
vecāks
revīzija
0528cd64e6
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. 1 0
      src/nrpe.c

+ 1 - 0
src/nrpe.c

@@ -1846,6 +1846,7 @@ int write_pid_file(void){
 	        }
 	        }
 	else{
 	else{
 		syslog(LOG_ERR,"Cannot write to pidfile '%s' - check your privileges.",pid_file);
 		syslog(LOG_ERR,"Cannot write to pidfile '%s' - check your privileges.",pid_file);
+		return ERROR;
 	        }
 	        }
 
 
 	return OK;
 	return OK;