We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c71af75 commit a87af4fCopy full SHA for a87af4f
src/networking.c
@@ -61,7 +61,7 @@ redisClient *createClient(int fd) {
61
* contexts (for instance a Lua script) we need a non connected client. */
62
// 因为 Redis 命令总在客户端的上下文中执行,
63
// 有时候为了在服务器内部执行命令,需要使用伪客户端来执行命令
64
- // 在 fd == 1 时,创建的客户端为伪终端
+ // 在 fd == -1 时,创建的客户端为伪终端
65
if (fd != -1) {
66
anetNonBlock(NULL,fd);
67
anetTcpNoDelay(NULL,fd);
0 commit comments