Changeset 3479 for trunk/src/kmk/main.c


Ignore:
Timestamp:
Sep 21, 2020, 12:59:41 PM (5 years ago)
Author:
bird
Message:

kmk: Added some refinements to the recent repeat-output-from-failing-command-in-die hack.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/main.c

    r3432 r3479  
    43884388        {
    43894389          need_2nd_error = 1;
    4390           need_2nd_error_output = job_slots_used > 2
    4391                                && out == NULL
     4390          need_2nd_error_output = job_slots_used >= 2
     4391                               && out != NULL
    43924392                               && out != &make_sync;
     4393          if (need_2nd_error_output)
     4394            output_metered = 0;
    43934395        }
    43944396#endif /* KMK */
     
    44704472  {
    44714473      out->dont_truncate = 0;
    4472       if (need_2nd_error_output)
     4474fprintf(stderr, "output_metered=%d\n", output_metered);
     4475      if (need_2nd_error_output && output_metered > 20)
    44734476        output_dump (out);
     4477      else
     4478        output_reset (out);
    44744479      output_close (out);
    44754480  }
     
    44804485
    44814486#ifdef KMK
    4482 void die(int status)
     4487void die (int status)
    44834488{
    44844489    die_with_job_output (status, NULL);
Note: See TracChangeset for help on using the changeset viewer.