Revert "Use REDIS_SUPERVISED_NONE instead of 0."

This reverts commit 25cdb725c97184eb116639c034d0c48c8d0b7e83.

Nevermind.
This commit is contained in:
antirez 2015-01-12 15:58:23 +01:00
parent 25cdb725c9
commit b4c42569ea

View File

@ -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. */