Thanks for replay
I write a small program to test:

int main(int argc, char ** argv) {
uv_loop_t* loop = uv_default_loop();
int rt,rt0,rt1;
uv_pipe_init(loop, &stdin_pipe, 0);
rt0 = uv_pipe_open(&stdin_pipe, 0);
uv_pipe_init(loop, &stdout_pipe, 0);
rt1 = uv_pipe_open(&stdout_pipe, 1);
rt = uv_read_start((uv_stream_t*) &stdin_pipe, alloc_buffer, read_stdin);
uv_run(loop, UV_RUN_DEFAULT);
return 0;
}

but rt1 and rt2 all equal -1. (On Win7)

在 2014年6月11日星期三UTC+8上午12时59分57秒,Bert Belder写道:
>
>  You’re not supposed to run stdio_over_pipes_helper directly. I’ll see a 
> a TTY handle for it’s stdin if you run it like that.
>
> To run the stdio_over_pipes test, do “run-tests.exe stdio_over_pipes”.
>
>  
>   
> *From:* [email protected] <javascript:> [mailto:
> [email protected] <javascript:>] *On Behalf Of *??
> *Sent:* Tuesday, June 10, 2014 6:28 PM
> *To:* [email protected] <javascript:>
> *Subject:* [libuv] Does libuv support stdio pipes on Windows?
>  
>  
>  
> Hi all!
>  
>  
>  
> On Win7
>  
>  
>  
> run-tests.exe stdio_over_pipes_helper
>  
> Assertion failed in test\test-stdio-over-pipes.c on line 210: 
> UV_NAMED_PIPE == uv_guess_handle(0)
>  
>  
>  
> -- 
> You received this message because you are subscribed to the Google Groups 
> "libuv" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] <javascript:>.
> To post to this group, send email to [email protected] <javascript:>.
> Visit this group at http://groups.google.com/group/libuv.
> For more options, visit https://groups.google.com/d/optout.
>   

-- 
You received this message because you are subscribed to the Google Groups 
"libuv" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/libuv.
For more options, visit https://groups.google.com/d/optout.

Reply via email to