Changeset 3432 for trunk/src/kmk/job.c


Ignore:
Timestamp:
Sep 1, 2020, 3:17:57 PM (5 years ago)
Author:
bird
Message:

kmk: Quick output hack to repeat the failure output at the end of die() as it may easily get lost in output from other jobs (problem on systems with lots of cores).

File:
1 edited

Legend:

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

    r3312 r3432  
    10621062#ifndef NO_OUTPUT_SYNC
    10631063      /* Synchronize any remaining parallel output.  */
     1064# ifdef KMK
     1065      c->output.dont_truncate = !err && child_failed && !dontcare && !keep_going_flag && !handling_fatal_signal;
     1066# endif
    10641067      output_dump (&c->output);
    10651068#endif
     
    10961099        lastc->next = c->next;
    10971100
     1101#ifdef KMK /* Repeat the error  */
     1102      /* If the job failed, and the -k flag was not given, die,
     1103         unless we are already in the process of dying.  */
     1104      if (!err && child_failed && !dontcare && !keep_going_flag &&
     1105          /* fatal_error_signal will die with the right signal.  */
     1106          !handling_fatal_signal)
     1107        {
     1108          unblock_sigs ();
     1109          die_with_job_output (child_failed, &c->output);
     1110        }
     1111#endif
     1112
    10981113      free_child (c);
    10991114
    11001115      unblock_sigs ();
    11011116
     1117#ifndef KMK /* See above. */
    11021118      /* If the job failed, and the -k flag was not given, die,
    11031119         unless we are already in the process of dying.  */
     
    11061122          !handling_fatal_signal)
    11071123        die (child_failed);
     1124#endif
    11081125
    11091126      /* Only block for one child.  */
Note: See TracChangeset for help on using the changeset viewer.