]> git.saurik.com Git - redis.git/blobdiff - src/aof.c
blocking SAVE implemented
[redis.git] / src / aof.c
index f5d04a62b4d493d1cbb82b5b7f2b98a55adf0a10..0c25cf6c62213a4ddfb38d2c89a412f592c574dc 100644 (file)
--- a/src/aof.c
+++ b/src/aof.c
@@ -585,10 +585,7 @@ void aofRemoveTempFile(pid_t childpid) {
 
 /* A background append only file rewriting (BGREWRITEAOF) terminated its work.
  * Handle this. */
-void backgroundRewriteDoneHandler(int statloc) {
-    int exitcode = WEXITSTATUS(statloc);
-    int bysignal = WIFSIGNALED(statloc);
-
+void backgroundRewriteDoneHandler(int exitcode, int bysignal) {
     if (!bysignal && exitcode == 0) {
         int fd;
         char tmpfile[256];
@@ -636,7 +633,7 @@ void backgroundRewriteDoneHandler(int statloc) {
     } else {
         redisLog(REDIS_WARNING,
             "Background append only file rewriting terminated by signal %d",
-            WTERMSIG(statloc));
+            bysignal);
     }
 cleanup:
     sdsfree(server.bgrewritebuf);