On Mon, Mar 02, 2009 at 09:19:22AM +0100, Michael Schnell wrote:
>
>> create a pipe
>> vfork
>> in child change stdout and stderr to one end of the pipe
>> exec a new program that now uses the pipe as it's output
>> now in the main program read from the pipe to get the output.
>>   
> Will the child do *exec() ?

Yes that would be the 'exec a new program...' step.

> If not, the parent will be blocked until the child exits. This might or  
> might not be desired.

Yeah that would certainly be undesired.  I figure the exec should happen
as soon as possible after the vfork.

-- 
Len Sorensen
_______________________________________________
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to