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

Function clear_child_for_cleanup

run-command.c:110–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108}
109
110static void clear_child_for_cleanup(pid_t pid)
111{
112 struct child_to_clean **pp;
113
114 for (pp = &children_to_clean; *pp; pp = &(*pp)->next) {
115 struct child_to_clean *clean_me = *pp;
116
117 if (clean_me->pid == pid) {
118 *pp = clean_me->next;
119 free(clean_me);
120 return;
121 }
122 }
123}
124
125static inline void close_pair(int fd[2])
126{

Callers 1

wait_or_whineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected