| 52 | } |
| 53 | |
| 54 | static void close_in(struct hc_proc *p) { |
| 55 | if (p->in != -1 && close(p->in) == -1) { |
| 56 | hc_throw("Failed closing stdin: %d", errno); |
| 57 | } |
| 58 | } |
| 59 | |
| 60 | void hc_proc_wait(struct hc_proc *p) { |
| 61 | close_in(p); |
no outgoing calls
no test coverage detected