diff options
author | Fedor Indutny <fedor.indutny@gmail.com> | 2012-05-28 23:52:34 +0400 |
---|---|---|
committer | Fedor Indutny <fedor.indutny@gmail.com> | 2012-05-29 18:26:40 +0400 |
commit | 761e0c460a8e9a40cd1126cf0ba354e50e38d6da (patch) | |
tree | 314a084790dd95dcea5ea4928321a9d47c3aaa93 /deps/uv/test/test-ipc.c | |
parent | fa9aa1c961125f5c5527c7b5e3720eadf84a979f (diff) | |
download | android-node-v8-761e0c460a8e9a40cd1126cf0ba354e50e38d6da.tar.gz android-node-v8-761e0c460a8e9a40cd1126cf0ba354e50e38d6da.tar.bz2 android-node-v8-761e0c460a8e9a40cd1126cf0ba354e50e38d6da.zip |
deps: upgrade libuv to 7556590
Diffstat (limited to 'deps/uv/test/test-ipc.c')
-rw-r--r-- | deps/uv/test/test-ipc.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/deps/uv/test/test-ipc.c b/deps/uv/test/test-ipc.c index 1ea0e7f963..61add0b4b8 100644 --- a/deps/uv/test/test-ipc.c +++ b/deps/uv/test/test-ipc.c @@ -200,6 +200,7 @@ void spawn_helper(uv_pipe_t* channel, char exepath[1024]; char* args[3]; int r; + uv_stdio_container_t stdio[1]; r = uv_pipe_init(uv_default_loop(), channel, 1); ASSERT(r == 0); @@ -218,7 +219,12 @@ void spawn_helper(uv_pipe_t* channel, options.file = exepath; options.args = args; options.exit_cb = exit_cb; - options.stdin_stream = channel; + + 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; r = uv_spawn(uv_default_loop(), process, options); ASSERT(r == 0); @@ -611,4 +617,4 @@ int ipc_helper_tcp_connection() { ASSERT(close_cb_called == 4); return 0; -}
\ No newline at end of file +} |