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

Function die_async

run-command.c:1061–1077  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1059}
1060
1061static NORETURN void die_async(const char *err, va_list params)
1062{
1063 report_fn die_message_fn = get_die_message_routine();
1064
1065 die_message_fn(err, params);
1066
1067 if (in_async()) {
1068 struct async *async = pthread_getspecific(async_key);
1069 if (async->proc_in >= 0)
1070 close(async->proc_in);
1071 if (async->proc_out >= 0)
1072 close(async->proc_out);
1073 pthread_exit((void *)128);
1074 }
1075
1076 exit(128);
1077}
1078
1079static int async_die_is_recursing(void)
1080{

Callers

nothing calls this directly

Calls 4

get_die_message_routineFunction · 0.85
in_asyncFunction · 0.85
pthread_getspecificFunction · 0.85
pthread_exitFunction · 0.85

Tested by

no test coverage detected