MCPcopy Create free account
hub / github.com/git/git / mark_child_for_cleanup

Function mark_child_for_cleanup

run-command.c:95–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93}
94
95static void mark_child_for_cleanup(pid_t pid, struct child_process *process)
96{
97 struct child_to_clean *p = xmalloc(sizeof(*p));
98 p->pid = pid;
99 p->process = process;
100 p->next = children_to_clean;
101 children_to_clean = p;
102
103 if (!installed_child_cleanup_handler) {
104 atexit(cleanup_children_on_exit);
105 sigchain_push_common(cleanup_children_on_signal);
106 installed_child_cleanup_handler = 1;
107 }
108}
109
110static void clear_child_for_cleanup(pid_t pid)
111{

Callers 2

start_commandFunction · 0.85
start_asyncFunction · 0.85

Calls 2

sigchain_push_commonFunction · 0.85
xmallocFunction · 0.70

Tested by

no test coverage detected