| 176 | } |
| 177 | |
| 178 | static bool close_fd(int *fd) { |
| 179 | if (*fd < 0) |
| 180 | return true; |
| 181 | int value = *fd; |
| 182 | *fd = -1; |
| 183 | return close(value) == 0; |
| 184 | } |
| 185 | |
| 186 | static bool reap(Child *child, bool terminate, int *status, bool *reaped) { |
| 187 | if (child->pid < 0) |
no test coverage detected