]> git.saurik.com Git - redis.git/commitdiff
Now when a child is terminated by a signal, the signal number is logged as well
authorantirez <antirez@gmail.com>
Wed, 7 Apr 2010 15:36:44 +0000 (17:36 +0200)
committerantirez <antirez@gmail.com>
Wed, 7 Apr 2010 15:36:44 +0000 (17:36 +0200)
redis.c

diff --git a/redis.c b/redis.c
index 9e5bc94a933cad353596031591fa1f013efce338..2a65f36f98a93cac29df63032be3b775dfac4cf7 100644 (file)
--- a/redis.c
+++ b/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);