Bastien ROUCARIES wrote:
> >  - You can pass command-line options and stdin, stdout to the child process;
> >    file descriptors > 2 cannot be passed to child processes on Windows, I 
> > think.
> Not sure about the last point see
> http://msdn.microsoft.com/en-us/library/ms683463(v=vs.85).aspx

Yes, this is not very clear either. In the meantime you can play safe by
relying only on the inheritance of STDIN_FILENO and STDOUT_FILENO.

> And unfortunatly socketpair need fd process inherance, so sad :(

"so sad"? Just copy the 8 line of code relating to dup2() from
tests/test-nonblocking-pipe-main.c, and you're done.

Bruno
-- 
In memoriam Charles Delestraint 
<http://en.wikipedia.org/wiki/Charles_Delestraint>

Reply via email to