Sentinel: added missing exit(1) after checking for config file.

This commit is contained in:
antirez 2014-02-24 16:22:52 +01:00
parent 540536c055
commit 25cebf7285

View File

@ -420,6 +420,7 @@ void sentinelIsRunning(void) {
if (server.configfile == NULL) {
redisLog(REDIS_WARNING,
"Sentinel started without a config file. Exiting...");
exit(1);
} else if (access(server.configfile,W_OK) == -1) {
redisLog(REDIS_WARNING,
"Sentinel config file %s is not writable: %s. Exiting...",