MCPcopy Create free account
hub / github.com/codr7/hacktical-c / hc_proc_wait

Function hc_proc_wait

dynamic/dynamic.c:60–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60void hc_proc_wait(struct hc_proc *p) {
61 close_in(p);
62
63 if (waitpid(p->pid, NULL, 0) == -1) {
64 hc_throw("Failed waiting for child process to exit: %d", errno);
65 }
66}
67
68void hc_proc_deinit(struct hc_proc *p) {
69 close_in(p);

Callers 1

_hc_compileFunction · 0.85

Calls 1

close_inFunction · 0.85

Tested by

no test coverage detected