From 25cebf72853ccf0e8d7a042217b4f39f2ad9d793 Mon Sep 17 00:00:00 2001 From: antirez Date: Mon, 24 Feb 2014 16:22:52 +0100 Subject: [PATCH] Sentinel: added missing exit(1) after checking for config file. --- src/sentinel.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sentinel.c b/src/sentinel.c index 17d56a1d..06f54b52 100644 --- a/src/sentinel.c +++ b/src/sentinel.c @@ -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...",