Browse Source

NRPE should not start if cannot write pid file

Fix for issue http://tracker.nagios.org/view.php?id=218
John C. Frickson 10 years ago
parent
commit
0528cd64e6
1 changed files with 1 additions and 0 deletions
  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;