提交 e083d752 编写于 作者: A antirez

ignore gcc warning about write() return code not checked. It is esplicitily...

ignore gcc warning about write() return code not checked. It is esplicitily this way since the "max number of clients reached" is a best-effort error
上级 a1f6fa5e
......@@ -1528,7 +1528,7 @@ static void acceptHandler(aeEventLoop *el, int fd, void *privdata, int mask) {
char *err = "-ERR max number of clients reached\r\n";
/* That's a best effort error message, don't check write errors */
write(c->fd,err,strlen(err));
(void)write(c->fd,err,strlen(err));
freeClient(c);
return;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册