| 371 | } |
| 372 | |
| 373 | static int yaml_flock_nointr(int descriptor, int operation) { |
| 374 | int result = 0; |
| 375 | do { |
| 376 | result = flock(descriptor, operation); |
| 377 | } while (result != 0 && errno == EINTR); |
| 378 | return result == 0 ? 0 : YAML_ERROR; |
| 379 | } |
| 380 | #endif |
| 381 | |
| 382 | static int yaml_lock_acquire(const char *path, yaml_config_lock_t *lock) { |
no test coverage detected