From f66eda7cbaf6a1bec86bbaf3928d5319956ac975 Mon Sep 17 00:00:00 2001 From: yeyuanfeng Date: Thu, 31 Jan 2019 17:07:33 +0800 Subject: [PATCH] unix: fix epoll cpu 100% issue MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes: https://github.com/libuv/libuv/issues/2162 PR-URL: https://github.com/libuv/libuv/pull/2166 Reviewed-By: Saúl Ibarra Corretgé Reviewed-By: Santiago Gimeno Reviewed-By: Li YuBei Reviewed-By: Jameson Nash Reviewed-By: Colin Ihrig Reviewed-By: Ben Noordhuis --- src/unix/pipe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/unix/pipe.c b/src/unix/pipe.c index d3b554cf..228d1588 100644 --- a/src/unix/pipe.c +++ b/src/unix/pipe.c @@ -215,7 +215,7 @@ void uv_pipe_connect(uv_connect_t* req, } if (err == 0) - uv__io_start(handle->loop, &handle->io_watcher, POLLIN | POLLOUT); + uv__io_start(handle->loop, &handle->io_watcher, POLLOUT); out: handle->delayed_error = err;