From db3d0ff33a2701971a90f9c0284d28674555f716 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Jos=C3=A9?= Date: Thu, 3 Jul 2025 14:04:46 -0500 Subject: unix: handle possible `ENOMEM` in `uv__pipe_listen` (#4817) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Refs: https://github.com/libuv/libuv/issues/4755 Signed-off-by: Juan José Arboleda --- src/unix/pipe.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/unix/pipe.c') 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); } -- cgit v1.2.3