| 58 | } |
| 59 | |
| 60 | void 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 | |
| 68 | void hc_proc_deinit(struct hc_proc *p) { |
| 69 | close_in(p); |
no test coverage detected