| 23 | // ---------------------------------------------------------------------------------------- |
| 24 | |
| 25 | void make_fd_non_blocking(int fd) |
| 26 | { |
| 27 | int flags = fcntl(fd, F_GETFL, 0); |
| 28 | fcntl(fd, F_SETFL, flags | O_NONBLOCK); |
| 29 | } |
| 30 | |
| 31 | // ---------------------------------------------------------------------------------------- |
| 32 |