Changeset 3432 for trunk/src/kmk/main.c
- Timestamp:
- Sep 1, 2020, 3:17:57 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kmk/main.c
r3396 r3432 4359 4359 4360 4360 void 4361 #ifdef KMK 4362 die_with_job_output (int status, struct output *out) 4363 #else 4361 4364 die (int status) 4365 #endif 4362 4366 { 4363 4367 static char dying = 0; 4364 4368 #ifdef KMK 4365 4369 static char need_2nd_error = 0; 4370 static char need_2nd_error_output = 0; 4366 4371 #endif 4367 4372 … … 4381 4386 || print_data_base_flag 4382 4387 || print_stats_flag)) 4383 need_2nd_error = 1; 4388 { 4389 need_2nd_error = 1; 4390 need_2nd_error_output = job_slots_used > 2 4391 && out == NULL 4392 && out != &make_sync; 4393 } 4384 4394 #endif /* KMK */ 4385 4395 … … 4457 4467 if (need_2nd_error != 0) 4458 4468 ON (error, NILF, _("*** Exiting with status %d"), status); 4469 if (out) 4470 { 4471 out->dont_truncate = 0; 4472 if (need_2nd_error_output) 4473 output_dump (out); 4474 output_close (out); 4475 } 4459 4476 #endif 4460 4477 4461 4478 exit (status); 4462 4479 } 4480 4481 #ifdef KMK 4482 void die(int status) 4483 { 4484 die_with_job_output (status, NULL); 4485 } 4486 #endif
Note:
See TracChangeset
for help on using the changeset viewer.