This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [incremental] Patch: FYI: fix pex call
- From: Tom Tromey <tromey at redhat dot com>
- To: Ian Lance Taylor <iant at google dot com>
- Cc: Gcc Patch List <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 06 Sep 2007 09:10:25 -0600
- Subject: Re: [incremental] Patch: FYI: fix pex call
- References: <m38x7kbyph.fsf@fleche.redhat.com> <m3ps0wtj8c.fsf@localhost.localdomain>
- Reply-to: tromey at redhat dot com
>>>>> "Ian" == Ian Lance Taylor <iant@google.com> writes:
Ian> Tom Tromey <tromey@redhat.com> writes:
>> And, we call pex_get_status. Calling this seems to let 'as' finish
>> properly -- I thought it was optional but it does seem to make a
>> difference.
Ian> This shouldn't be required, as pex_free should do it when necessary.
Ian> It would be nice to track this down and fix it in the pex code.
I debugged and it comes from this code in pex_unix_wait:
if (done)
kill (pid, SIGTERM);
The explicit call to pex_get_status bypasses this and lets the
subprocess finish.
Tom