aceld / aceld/libevent

实例代码写错了

Open
#8 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
900
Forks
201
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.