[gccsdk] Environment handling bugs

Peter Naulls peter at chocky.org
Sat Feb 16 08:46:40 PST 2008


John Tytgat wrote:
> In message <d31a15724f.peter at chocky.org>
>           Peter Naulls <peter at chocky.org> wrote:
> 
>> On a slightly related note, I need file redirections to work over exec -
>> if only for debugging purposes.  I'm referring to line 389 onwards of
>> exec.c of course, where all the file handles get closed.
>>
>> In the past, I've locally modified this file.  I know this is tricky to
>> resolve, for precisely the reasons in the comments; I'm tempted to add
>> an application specific variable to leave them open in specific
>> application cases.
> 
> I'm not sure I understand why the current implementation needs changing.
> Is it about having a parent with redirected stdout/stderr calling a child
> process where the redirection doesn't work anymore for the child process
> because the redirection filehandle got closed ? Is that what's going wrong
> and you want to see addressed ?

That is it.  Especially if the child process is going to be a wimp task,
it'll make a mess of the screen if there's any output before it becomes
one, and after, any output will be lost.






More information about the gcc mailing list