diff options
author | antirez <antirez@gmail.com> | 2011-02-21 17:50:54 +0100 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2011-02-21 17:50:54 +0100 |
commit | eece2d528cf8feb6534a19311220c5c4f390df54 (patch) | |
tree | 2b89245f98f226db12765a4558df9f8043e0a00e | |
parent | eb5aeaf138b4977a06afefc684801c6cf1da118a (diff) | |
download | redis-eece2d528cf8feb6534a19311220c5c4f390df54.tar.gz |
suppress a Linux warning, for 2.2 sake
-rw-r--r-- | src/replication.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/replication.c b/src/replication.c index e55801006..b0fa70556 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. */ + } } } } |