Skip to content

Commit 45979fd

Browse files
committed
Merge pull request huangzworks#6 from yihuang/unstable
修复一个错误,感谢 @yihuang 的贡献。
2 parents c71af75 + a87af4f commit 45979fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/networking.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ redisClient *createClient(int fd) {
6161
* contexts (for instance a Lua script) we need a non connected client. */
6262
// 因为 Redis 命令总在客户端的上下文中执行,
6363
// 有时候为了在服务器内部执行命令,需要使用伪客户端来执行命令
64-
// 在 fd == 1 时,创建的客户端为伪终端
64+
// 在 fd == -1 时,创建的客户端为伪终端
6565
if (fd != -1) {
6666
anetNonBlock(NULL,fd);
6767
anetTcpNoDelay(NULL,fd);

0 commit comments

Comments
 (0)