MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / wait_for_all_children

Function wait_for_all_children

daemonize.c:161–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159}
160
161int wait_for_all_children(void)
162{
163 int procs_no,i,ret;
164 char rc;
165
166 clean_write_pipeend();
167
168 procs_no = count_init_child_processes();
169 for (i=0;i<procs_no;i++) {
170 ret = wait_status_code(&rc);
171 if (ret < 0 || rc < 0)
172 return -1;
173 }
174
175 return 0;
176}
177
178/* cleans read pipe end
179 * for processes done reading */

Callers 1

daemonizeFunction · 0.85

Calls 3

clean_write_pipeendFunction · 0.85
wait_status_codeFunction · 0.85

Tested by

no test coverage detected