| 507 | } |
| 508 | |
| 509 | static bool posix_lock_exclusive(int fd) { |
| 510 | while (flock(fd, LOCK_EX) != 0) { |
| 511 | if (errno != EINTR) { |
| 512 | return false; |
| 513 | } |
| 514 | } |
| 515 | return true; |
| 516 | } |
| 517 | |
| 518 | static int posix_log_file_open(const posix_log_path_t *path, struct stat *status_out, |
| 519 | bool *created_out) { |
no test coverage detected