Skip to content

实例代码写错了 #8

@zingerWang

Description

@zingerWang

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions