diff --git "a/26-\347\256\200\345\215\225\347\232\204epoll\346\234\215\345\212\241\345\231\250.md" "b/26-\347\256\200\345\215\225\347\232\204epoll\346\234\215\345\212\241\345\231\250.md" index 9aa9bf8..95282cd 100644 --- "a/26-\347\256\200\345\215\225\347\232\204epoll\346\234\215\345\212\241\345\231\250.md" +++ "b/26-\347\256\200\345\215\225\347\232\204epoll\346\234\215\345\212\241\345\231\250.md" @@ -179,7 +179,7 @@ void setnoblocking(int fd) int opts = 0; opts = fcntl(fd, F_GETFL); opts = opts | O_NONBLOCK; - fcntl(fd, F_SETFL); + fcntl(fd, F_SETFL, opts); } int main(int argc, char **argv)