MCPcopy Index your code
hub / github.com/git/git / die_webcgi

Function die_webcgi

http-backend.c:683–696  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

681
682static int dead;
683static 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
698static int die_webcgi_recursing(void)
699{

Callers

nothing calls this directly

Calls 4

get_die_message_routineFunction · 0.85
http_statusFunction · 0.85
hdr_nocacheFunction · 0.85
end_headersFunction · 0.85

Tested by

no test coverage detected