Commit 39eacde1 authored by antirez's avatar antirez
Browse files

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

parent 28aa15a6
...@@ -420,6 +420,7 @@ void sentinelIsRunning(void) { ...@@ -420,6 +420,7 @@ void sentinelIsRunning(void) {
if (server.configfile == NULL) { if (server.configfile == NULL) {
redisLog(REDIS_WARNING, redisLog(REDIS_WARNING,
"Sentinel started without a config file. Exiting..."); "Sentinel started without a config file. Exiting...");
exit(1);
} else if (access(server.configfile,W_OK) == -1) { } else if (access(server.configfile,W_OK) == -1) {
redisLog(REDIS_WARNING, redisLog(REDIS_WARNING,
"Sentinel config file %s is not writable: %s. Exiting...", "Sentinel config file %s is not writable: %s. Exiting...",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment