This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: Avoid console windows on Win32


Danny Smith wrote:
> 
>> -----Original Message-----
>> From: Mark Mitchell
>> Sent: Wednesday, March 22, 2006 11:05 AM
>> To: Danny Smith
>>
>> Danny Smith wrote:
>>
>>> This breaks -pipe switch,
>> Thanks for testing!
>>
>> I *think* that's actually a pre-existing problem, which I 
>> fixed last night.  pex_run creates the pipe, but doesn't 
>> close the write end of the pipe, in the parent.
> 
> Yes, it is a pre-existing problem.  
>> If you add:
>>
>>   p[READ_PORT] = -1;
>>   p[WRITE_PORT] = -1;
>>
>> at the top of the function and:
>>
>>   if (p[WRITE_PORT] != -1)
>>     obj->funcs->close (obj, p[WRITE_PORT]);
>>
>> after the call to exec_child, does that fix it?
> 
> This is what I tried.  It doesn't fix it.

Weird.  I was just now verifying that this exact patch worked for me --
and it does seem to do so for me.  How odd...

-- 
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]