Permalink
Browse files

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

  • Loading branch information...
antirez committed Feb 24, 2014
1 parent 540536c commit 25cebf72853ccf0e8d7a042217b4f39f2ad9d793
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/sentinel.c
View
@@ -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...",

0 comments on commit 25cebf7

Please sign in to comment.