aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan José <soyjuanarbol@gmail.com>2025-07-03 14:04:46 -0500
committerGitHub <noreply@github.com>2025-07-03 21:04:46 +0200
commitdb3d0ff33a2701971a90f9c0284d28674555f716 (patch)
treebde99a9ecca318e7832e6ed2f8b25be6f5ba4c51
parent8e51d38ab69b8da3c803e12c0579203578fc0d41 (diff)
downloadlibuv-main.tar.gz
libuv-main.zip
unix: handle possible `ENOMEM` in `uv__pipe_listen` (#4817)HEADv1.xmain
Refs: https://github.com/libuv/libuv/issues/4755 Signed-off-by: Juan José Arboleda <soyjuanarbol@gmail.com>
-rw-r--r--src/unix/pipe.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/unix/pipe.c b/src/unix/pipe.c
index 68e225e2..f086a22f 100644
--- a/src/unix/pipe.c
+++ b/src/unix/pipe.c
@@ -171,8 +171,7 @@ int uv__pipe_listen(uv_pipe_t* handle, int backlog, uv_connection_cb cb) {
handle->connection_cb = cb;
handle->io_watcher.cb = uv__server_io;
- uv__io_start(handle->loop, &handle->io_watcher, POLLIN);
- return 0;
+ return uv__io_start(handle->loop, &handle->io_watcher, POLLIN);
}