Skip to content
Browse files

Now when a child is terminated by a signal, the signal number is logg…

…ed as well
  • Loading branch information...
1 parent 686bc0a commit 454eea7c44b5dc54690aea71d6411d241148f12d @antirez committed Apr 7, 2010
Showing with 3 additions and 2 deletions.
  1. +3 −2 redis.c
View
5 redis.c
@@ -1223,7 +1223,7 @@ void backgroundSaveDoneHandler(int statloc) {
redisLog(REDIS_WARNING, "Background saving error");
} else {
redisLog(REDIS_WARNING,
- "Background saving terminated by signal");
+ "Background saving terminated by signal %d", WTERMSIG(statloc));
rdbRemoveTempFile(server.bgsavechildpid);
}
server.bgsavechildpid = -1;
@@ -1284,7 +1284,8 @@ void backgroundRewriteDoneHandler(int statloc) {
redisLog(REDIS_WARNING, "Background append only file rewriting error");
} else {
redisLog(REDIS_WARNING,
- "Background append only file rewriting terminated by signal");
+ "Background append only file rewriting terminated by signal %d",
+ WTERMSIG(statloc));
}
cleanup:
sdsfree(server.bgrewritebuf);

0 comments on commit 454eea7

Please sign in to comment.
Something went wrong with that request. Please try again.