/* * Finish -- * Called when aborting due to errors in command or fatal signal * * Side Effects: * The program exits */ void Finish() { Job_Wait(); print_errors(); if (DEBUG(GRAPH2)) post_mortem(); exit(2); /* Not 1 so -q can distinguish error */ }
/* * Finish -- * Called when aborting due to errors in child shell to signal * abnormal exit. * * Side Effects: * The program exits */ void Finish(int errors) /* number of errors encountered in Make_Make */ { Job_Wait(); if (errors != 0) { Error("Stop in %s:", Var_Value(".CURDIR")); } print_errors(); if (DEBUG(GRAPH2)) Targ_PrintGraph(2); exit(2); /* Not 1 so -q can distinguish error */ }
/* VARARGS */ void Fatal(char *fmt, ...) { va_list ap; Job_Wait(); va_start(ap, fmt); (void)vfprintf(stderr, fmt, ap); va_end(ap); (void)fprintf(stderr, "\n"); if (DEBUG(GRAPH2)) post_mortem(); exit(2); /* Not 1 so -q can distinguish error */ }
/* VARARGS */ void Fatal(char *fmt, ...) { va_list ap; if (supervise_jobs) Job_Wait(); va_start(ap, fmt); (void)vfprintf(stderr, fmt, ap); va_end(ap); (void)fprintf(stderr, "\n"); if (DEBUG(GRAPH2)) Targ_PrintGraph(2); exit(2); /* Not 1 so -q can distinguish error */ }
/* VARARGS */ void Fatal(const char *fmt, ...) { va_list ap; va_start(ap, fmt); if (jobsRunning) Job_Wait(); vfprintf(stderr, fmt, ap); va_end(ap); fprintf(stderr, "\n"); fflush(stderr); if (DEBUG(GRAPH2)) Targ_PrintGraph(2); exit(2); /* Not 1 so -q can distinguish error */ }