Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

实例代码写错了 #8

Open
zingerWang opened this issue Dec 26, 2023 · 0 comments
Open

实例代码写错了 #8

zingerWang opened this issue Dec 26, 2023 · 0 comments

Comments

@zingerWang
Copy link

在26-简单的epoll服务器.md中的void setnoblocking(int fd)这个函数里面调用了fcntl(fd, F_SETFL);但是实际上应该为fcntl(fd, F_SETFL, opts);否则不会设置成功的,ops只是一个局部的int变量。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant