From: Ian Lance Taylor <iant@google.com>
To: Julian Brown <julian@codesourcery.com>
Cc: gdb-patches@sourceware.org, gcc-patches@gcc.gnu.org,
binutils@sourceware.org
Subject: Re: [PATCH, libiberty] Pex pipes block under win32 when parent process dies
Date: Mon, 27 Apr 2009 20:56:00 -0000 [thread overview]
Message-ID: <m3d4axolyk.fsf@google.com> (raw)
In-Reply-To: <20090427153649.53adf4f0@rex.config> (Julian Brown's message of "Mon\, 27 Apr 2009 15\:36\:49 +0100")
Julian Brown <julian@codesourcery.com> writes:
> libiberty/
> * pex-win32.c (pex_win32_pipe): Add _O_NOINHERIT.
> (pex_win32_exec_child): Ensure each process has only one handle
> open on pipe endpoints. Close standard input after creating child
> for symmetry with standard output/standard error.
> + /* Ensure we have inheritable descriptors to pass to the child, and close the
> + original descriptors. */
> + orig_in = in;
> + in = _dup (orig_in);
> + obj->funcs->close (obj, orig_in);
You can just call _close, here and below (i.e., change the existing
code). obj->funcs->close is always going to be pex_win32_close. I
don't see any need to do the indirection. That would mean not removing
the ATTRIBUTE_UNUSED on obj.
OK with that change.
Thanks.
Ian
prev parent reply other threads:[~2009-04-27 20:56 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-27 14:37 Julian Brown
2009-04-27 20:56 ` Ian Lance Taylor [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m3d4axolyk.fsf@google.com \
--to=iant@google.com \
--cc=binutils@sourceware.org \
--cc=gcc-patches@gcc.gnu.org \
--cc=gdb-patches@sourceware.org \
--cc=julian@codesourcery.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox