(self)
| 77 | |
| 78 | @override |
| 79 | def _release(self) -> None: |
| 80 | fd = cast("int", self._context.lock_file_fd) |
| 81 | # An unlock failure leaves the byte range held. Only report release after the kernel commits it. |
| 82 | unlock_fd(fd) |
| 83 | self._mark_descriptor_released() |
| 84 | self._close_released_fd(fd, default_suppresses=False) |
| 85 | if not self._settings.preserve_lock_file: |
| 86 | with suppress(OSError): |
| 87 | unlink_without_oplock_wait(self._lock_path) |
| 88 | |
| 89 | def lock_fd_nonblocking(fd: int) -> bool: |
| 90 | # Locking byte zero explicitly keeps reads and writes from changing the locked range. |
nothing calls this directly
no test coverage detected