| 564 | } |
| 565 | |
| 566 | static bool posix_sync(int fd) { |
| 567 | for (;;) { |
| 568 | if (fsync(fd) == 0) { |
| 569 | return true; |
| 570 | } |
| 571 | if (errno != EINTR) { |
| 572 | return false; |
| 573 | } |
| 574 | } |
| 575 | } |
| 576 | |
| 577 | static bool posix_log_refresh_locked(const posix_log_path_t *path, int fd, |
| 578 | struct stat *status_out) { |