mirror of
https://github.com/redis/redis.git
synced 2026-04-21 03:01:35 -04:00
suppress a Linux warning, for 2.2 sake
This commit is contained in:
@@ -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. */
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user