X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/89a1433e69db5f7c996484672437616a16a6fe0a..9ad853ccde374ed371efee3b1654c6ebb39e06fa:/src/replication.c diff --git a/src/replication.c b/src/replication.c index e5580100..b0fa7055 100644 --- a/src/replication.c +++ b/src/replication.c @@ -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. */ + } } } }