Commit eece2d52 authored by antirez's avatar antirez
Browse files

suppress a Linux warning, for 2.2 sake

parent eb5aeaf1
......@@ -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. */
}
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment