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: [incremental] Patch: FYI: fix pex call


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


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