From d76556797ddeb6143fa9a1c597f3e72271927858 Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Mon, 4 Dec 2017 00:11:24 +0100 Subject: [PATCH] doc: fix EPOLL_CTL_MOD -> EPOLL_CTL_DEL --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 54428d2..d1ced5f 100644 --- a/README.md +++ b/README.md @@ -88,7 +88,7 @@ int epoll_ctl(HANDLE ephnd, * `ephnd` must be a HANDLE created by `epoll_create` or `epoll_create1`. * `op` must be one of `EPOLL_CTL_ADD`, `EPOLL_CTL_MOD`, `EPOLL_CTL_DEL`. * It is recommended to always explicitly remove a socket from its epoll - set using `EPOLL_CTL_MOD` *before* closing it. As on Linux, sockets + set using `EPOLL_CTL_DEL` *before* closing it. As on Linux, sockets are automatically removed from the epoll set when they are closed, but wepoll may not be able to detect this until the next call to `epoll_wait()`.