| 549 | #endif /* GIT_WINDOWS_NATIVE */ |
| 550 | |
| 551 | static inline void set_cloexec(int fd) |
| 552 | { |
| 553 | int flags = fcntl(fd, F_GETFD); |
| 554 | if (flags >= 0) |
| 555 | fcntl(fd, F_SETFD, flags | FD_CLOEXEC); |
| 556 | } |
| 557 | |
| 558 | static int wait_or_whine(pid_t pid, const char *argv0, int in_signal) |
| 559 | { |
no test coverage detected