aboutsummaryrefslogtreecommitdiff
path: root/src/unix/pipe.c
diff options
context:
space:
mode:
authoryeyuanfeng <yeyuanfeng@bytedance.com>2019-01-31 17:07:33 +0800
committerSantiago Gimeno <santiago.gimeno@gmail.com>2019-02-05 08:33:26 +0100
commitf66eda7cbaf6a1bec86bbaf3928d5319956ac975 (patch)
treece2e127769f58068bb08c2495850e63e1b903bee /src/unix/pipe.c
parent43744c37088444f2643dbea58074e950bcdbfc30 (diff)
downloadlibuv-f66eda7cbaf6a1bec86bbaf3928d5319956ac975.tar.gz
libuv-f66eda7cbaf6a1bec86bbaf3928d5319956ac975.zip
unix: fix epoll cpu 100% issue
Fixes: https://github.com/libuv/libuv/issues/2162 PR-URL: https://github.com/libuv/libuv/pull/2166 Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com> Reviewed-By: Li YuBei <leeight@gmail.com> Reviewed-By: Jameson Nash <vtjnash@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'src/unix/pipe.c')
-rw-r--r--src/unix/pipe.c2
1 files changed, 1 insertions, 1 deletions
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;