| 4 | #ifdef O_NONBLOCK |
| 5 | |
| 6 | int enable_pipe_nonblock(int fd) |
| 7 | { |
| 8 | int flags = fcntl(fd, F_GETFL); |
| 9 | if (flags < 0) |
| 10 | return -1; |
| 11 | flags |= O_NONBLOCK; |
| 12 | return fcntl(fd, F_SETFL, flags); |
| 13 | } |
| 14 | |
| 15 | #elif defined(GIT_WINDOWS_NATIVE) |
| 16 |
no test coverage detected