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

Function run_command

run-command.c:1022–1033  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1020
1021
1022int run_command(struct child_process *cmd)
1023{
1024 int code;
1025
1026 if (cmd->out < 0 || cmd->err < 0)
1027 BUG("run_command with a pipe can cause deadlock");
1028
1029 code = start_command(cmd);
1030 if (code)
1031 return code;
1032 return finish_command(cmd);
1033}
1034
1035#ifndef NO_PTHREADS
1036static pthread_t main_thread;

Callers 15

spawn_daemonFunction · 0.85
fill_ssh_argsFunction · 0.85
push_submoduleFunction · 0.85
submodule_push_checkFunction · 0.85
submodule_uses_gitfileFunction · 0.85
submodule_reset_indexFunction · 0.85
submodule_move_headFunction · 0.85
finish_http_pack_requestFunction · 0.85
run_shellFunction · 0.85
ll_ext_mergeFunction · 0.85
push_davFunction · 0.85

Calls 2

start_commandFunction · 0.85
finish_commandFunction · 0.85

Tested by 5

cmd_mainFunction · 0.68
cmd__run_commandFunction · 0.68
cmd__subprocessFunction · 0.68
ut_004childFunction · 0.68
ut_400ancestryFunction · 0.68