diff options
author | cjihrig <cjihrig@gmail.com> | 2018-06-22 11:28:11 -0400 |
---|---|---|
committer | cjihrig <cjihrig@gmail.com> | 2018-06-24 20:54:34 -0400 |
commit | 537a4baa443daea9850a8e324b5b4d7c21dd2717 (patch) | |
tree | f36565e62794a56adfa99a8511c6d2a90c466fbc /deps/uv/test/test-ipc.c | |
parent | 49e5f0a10fc3784b318842b06854b38475fc884b (diff) | |
download | android-node-v8-537a4baa443daea9850a8e324b5b4d7c21dd2717.tar.gz android-node-v8-537a4baa443daea9850a8e324b5b4d7c21dd2717.tar.bz2 android-node-v8-537a4baa443daea9850a8e324b5b4d7c21dd2717.zip |
deps: upgrade to libuv 1.21.0
Notable changes:
- Building via cmake is now supported.
PR-URL: https://github.com/libuv/libuv/pull/1850
- Stricter checks have been added to prevent watching the same
file descriptor multiple times.
PR-URL: https://github.com/libuv/libuv/pull/1851
Refs: https://github.com/nodejs/node/issues/3604
- An IPC deadlock on Windows has been fixed.
PR-URL: https://github.com/libuv/libuv/pull/1843
Fixes: https://github.com/nodejs/node/issues/9706
Fixes: https://github.com/nodejs/node/issues/7657
- uv_fs_lchown() has been added.
PR-URL: https://github.com/libuv/libuv/pull/1826
Refs: https://github.com/nodejs/node/issues/19868
- uv_fs_copyfile() sets errno on error.
PR-URL: https://github.com/libuv/libuv/pull/1881
Fixes: https://github.com/nodejs/node/issues/21329
- uv_fs_fchmod() supports -A files on Windows.
PR-URL: https://github.com/libuv/libuv/pull/1819
Refs: https://github.com/nodejs/node/issues/12803
PR-URL: https://github.com/nodejs/node/pull/21466
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'deps/uv/test/test-ipc.c')
-rw-r--r-- | deps/uv/test/test-ipc.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/deps/uv/test/test-ipc.c b/deps/uv/test/test-ipc.c index 88d63d4dc6..200f68d600 100644 --- a/deps/uv/test/test-ipc.c +++ b/deps/uv/test/test-ipc.c @@ -281,7 +281,7 @@ void spawn_helper(uv_pipe_t* channel, char exepath[1024]; char* args[3]; int r; - uv_stdio_container_t stdio[1]; + uv_stdio_container_t stdio[3]; r = uv_pipe_init(uv_default_loop(), channel, 1); ASSERT(r == 0); @@ -300,12 +300,15 @@ void spawn_helper(uv_pipe_t* channel, options.file = exepath; options.args = args; options.exit_cb = exit_cb; - options.stdio = stdio; - options.stdio[0].flags = UV_CREATE_PIPE | - UV_READABLE_PIPE | UV_WRITABLE_PIPE; - options.stdio[0].data.stream = (uv_stream_t*)channel; - options.stdio_count = 1; + options.stdio_count = ARRAY_SIZE(stdio); + + stdio[0].flags = UV_CREATE_PIPE | UV_READABLE_PIPE | UV_WRITABLE_PIPE; + stdio[0].data.stream = (uv_stream_t*) channel; + stdio[1].flags = UV_INHERIT_FD; + stdio[1].data.fd = 1; + stdio[2].flags = UV_INHERIT_FD; + stdio[2].data.fd = 2; r = uv_spawn(uv_default_loop(), process, &options); ASSERT(r == 0); |