On 04/10/14 19:52, Scott Prager wrote:
I saw a test named "spawn_same_stdout_stderr":
https://github.com/joyent/libuv/blob/master/test/test-spawn.c#L643

...and I thought that would answer my question, but in trying to copy
it, it did not work. (It looks like all it does is sets
"options.stdio_count = 2;")


options.stdio[0] refers to stdin and options.stdio[1] refers to stdout. What that test does is initialize a couple of pipes, one for each direction and instructs uv_spawn to create a readable and writable pipe respectively: https://github.com/joyent/libuv/blob/master/test/test-spawn.c#L656-L659

Can you gist your full test?


--
Saúl Ibarra Corretgé
http://bettercallsaghul.com

--
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