4
0
Эх сурвалжийг харах

NRPE should not start if cannot write pid file

Fix for issue http://tracker.nagios.org/view.php?id=218
John C. Frickson 10 жил өмнө
parent
commit
0528cd64e6
1 өөрчлөгдсөн 1 нэмэгдсэн , 0 устгасан
  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;