[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: RFC socketpair

From: Bruno Haible
Subject: Re: RFC socketpair
Date: Tue, 19 Apr 2011 19:02:30 +0200
User-agent: KMail/1.9.9

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.

In memoriam Charles Delestraint 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]