suppress a Linux warning, for 2.2 sake

This commit is contained in:
antirez 2011-02-21 17:50:54 +01:00
parent 09d2abdca2
commit f96a9f82d8

View File

@ -547,7 +547,9 @@ void replicationCron(void) {
* connection last interaction time, and at the same time * connection last interaction time, and at the same time
* we'll be sure that being a single char there are no * we'll be sure that being a single char there are no
* short-write problems. */ * short-write problems. */
write(slave->fd, "\n", 1); if (write(slave->fd, "\n", 1) == -1) {
/* Don't worry, it's just a ping. */
}
} }
} }
} }