unix: handle possible ENOMEM in uv__pipe_listen

Refs: https://github.com/libuv/libuv/issues/4755
Signed-off-by: Juan José Arboleda <soyjuanarbol@gmail.com>
This commit is contained in:
Juan José Arboleda 2025-07-03 13:26:39 -05:00
parent 8e51d38ab6
commit d170b4ba74

View File

@ -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);
}