]> git.saurik.com Git - redis.git/blobdiff - src/replication.c
Status replies converted in a special way like errors in the Lua <-> Redis conversion...
[redis.git] / src / replication.c
index e55801006b133415c28a38489d52e1d6dd3402a5..b0fa7055672816a5289b04c8001648e3f191c209 100644 (file)
@@ -547,7 +547,9 @@ void replicationCron(void) {
                  * connection last interaction time, and at the same time
                  * we'll be sure that being a single char there are no
                  * short-write problems. */
-                write(slave->fd, "\n", 1);
+                if (write(slave->fd, "\n", 1) == -1) {
+                    /* Don't worry, it's just a ping. */
+                }
             }
         }
     }