ext/asyncengine/libuv/test/test-ipc.c in asyncengine-0.0.1.testing1 vs ext/asyncengine/libuv/test/test-ipc.c in asyncengine-0.0.2.alpha1

- old
+ new

@@ -198,10 +198,11 @@ uv_process_options_t options; size_t exepath_size; 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); ASSERT(channel->ipc); @@ -216,12 +217,17 @@ memset(&options, 0, sizeof(options)); 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); } @@ -609,6 +615,6 @@ ASSERT(tcp_conn_read_cb_called == 1); ASSERT(tcp_conn_write_cb_called == 1); ASSERT(close_cb_called == 4); return 0; -} \ No newline at end of file +}