aceld/libevent

实例代码写错了

zingerWang opened this issue · 0 comments

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