From 1c76c47fee4d6f01aacc2860b02f9ec77d79852f Mon Sep 17 00:00:00 2001 From: tomsteve Date: Fri, 10 Mar 2023 07:46:23 -0800 Subject: [PATCH] opts has not been used --- ...225\347\232\204epoll\346\234\215\345\212\241\345\231\250.md" | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)