From f08586347d506dfec4ea74719d6bf637e88a3b1c Mon Sep 17 00:00:00 2001 From: antirez Date: Mon, 12 Jan 2015 15:58:23 +0100 Subject: [PATCH] Revert "Use REDIS_SUPERVISED_NONE instead of 0." This reverts commit 2c925b0c302ad8612cc4ac6261549482d3c69846. Nevermind. --- src/debug.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/debug.c b/src/debug.c index dc869540..7783196a 100644 --- a/src/debug.c +++ b/src/debug.c @@ -908,8 +908,7 @@ void sigsegvHandler(int sig, siginfo_t *info, void *secret) { " Suspect RAM error? Use redis-server --test-memory to verify it.\n\n" ); /* free(messages); Don't call free() with possibly corrupted memory. */ - if (server.daemonize && server.supervised == REDIS_SUPERVISED_NONE) - unlink(server.pidfile); + if (server.daemonize && server.supervised == 0) unlink(server.pidfile); /* Make sure we exit with the right signal at the end. So for instance * the core will be dumped if enabled. */