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

Function close_in

dynamic/dynamic.c:54–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54static 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
60void hc_proc_wait(struct hc_proc *p) {
61 close_in(p);

Callers 2

hc_proc_waitFunction · 0.85
hc_proc_deinitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected