Skip to content

Commit

Permalink
Revert "Use REDIS_SUPERVISED_NONE instead of 0."
Browse files Browse the repository at this point in the history
This reverts commit 2c925b0.

Nevermind.
  • Loading branch information
antirez committed Jan 12, 2015
1 parent 2c925b0 commit f085863
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/debug.c
Expand Up @@ -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. */
Expand Down

0 comments on commit f085863

Please sign in to comment.