소스 검색

NRPE should not start if cannot write pid file

Fix for issue http://tracker.nagios.org/view.php?id=218
John C. Frickson 10 년 전
부모
커밋
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{
 		syslog(LOG_ERR,"Cannot write to pidfile '%s' - check your privileges.",pid_file);
+		return ERROR;
 	        }
 
 	return OK;