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

Function finish_async

run-command.c:1278–1295  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1276}
1277
1278int finish_async(struct async *async)
1279{
1280#ifdef NO_PTHREADS
1281 int ret = wait_or_whine(async->pid, "child process", 0);
1282
1283 invalidate_lstat_cache();
1284
1285 return ret;
1286#else
1287 void *ret = (void *)(intptr_t)(-1);
1288
1289 if (pthread_join(async->tid, &ret))
1290 error("pthread_join failed");
1291 invalidate_lstat_cache();
1292 return (int)(intptr_t)ret;
1293
1294#endif
1295}
1296
1297int async_with_fork(void)
1298{

Callers 7

get_packFunction · 0.85
send_packFunction · 0.85
apply_single_file_filterFunction · 0.85
finish_sideband_asyncFunction · 0.85
run_proc_receive_hookFunction · 0.85
execute_commandsFunction · 0.85
unpack_with_sidebandFunction · 0.85

Calls 3

wait_or_whineFunction · 0.85
invalidate_lstat_cacheFunction · 0.85
errorFunction · 0.85

Tested by

no test coverage detected