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:

> 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.

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?

-- 
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]