 |
prebbz writes "Hi,
I am new developer under uClinux, my Altech MG-35 runs it. Have a question regarding file descriptors and vfork(). I assume the following possible, because the original dvdplayer.bin application (closed source) does this - just not sure how!
I want to execvlp a new program but before doing so, redirect the new programs stdin, stdout and stderr fd's to the parent e.g.
int newfdout = dup2(STDOUT, newfdout)
But, from what I have read, you are not allowed to execute any code in the child once forked (well, vforked) for risk of corrupting the parent. Is there a way to exec a new program under uClinux but redirect the filedescriptors to the parent? The code above does not work. Any ideas?
Apologies in advance if this is an obvious question.
/M"
|
|
 |