| 681 | |
| 682 | static int dead; |
| 683 | static NORETURN void die_webcgi(const char *err, va_list params) |
| 684 | { |
| 685 | if (dead <= 1) { |
| 686 | struct strbuf hdr = STRBUF_INIT; |
| 687 | report_fn die_message_fn = get_die_message_routine(); |
| 688 | |
| 689 | die_message_fn(err, params); |
| 690 | |
| 691 | http_status(&hdr, 500, "Internal Server Error"); |
| 692 | hdr_nocache(&hdr); |
| 693 | end_headers(&hdr); |
| 694 | } |
| 695 | exit(0); /* we successfully reported a failure ;-) */ |
| 696 | } |
| 697 | |
| 698 | static int die_webcgi_recursing(void) |
| 699 | { |
nothing calls this directly
no test coverage detected