1
0
mirror of https://github.com/fluencelabs/redis synced 2025-06-19 12:11:21 +00:00

Suppress harmless warnings.

This commit is contained in:
antirez
2015-12-16 12:36:29 +01:00
parent ac8f4a6af9
commit b9aeb98156
3 changed files with 8 additions and 4 deletions

@ -1566,7 +1566,11 @@ void ldbSendLogs(void) {
proto = sdscatlen(proto,"\r\n",2);
listDelNode(ldb.logs,ln);
}
write(ldb.fd,proto,sdslen(proto));
if (write(ldb.fd,proto,sdslen(proto)) == -1) {
/* Avoid warning. We don't check the return value of write()
* since the next read() will catch the I/O error and will
* close the debugging session. */
}
sdsfree(proto);
}