Open files to hash without blocking and reject non-regular ones (closes #100) #107

Merged
clawbot merged 1 commits from issue-100-fifo-open into next 2026-10-14 20:18:33 +02:00
1 Commits
Author SHA1 Message Date
sneak 2ff22964f5 Open files to hash without blocking and reject non-regular ones (closes #100)
check / check (push) Canceled after 0s
A regular file replaced by a FIFO after the walk statted it made the
hash phase's open wait forever for a writer, so the scan never ended
and kept the lock. The hash and content phases now open each file with
O_NONBLOCK and check with fstat that it is still a regular file;
anything else is a per-path error, warned about and skipped. The new
test replaces a walked file with a FIFO before the hash phase reads it.

Model: opus-5-5
2026-10-14 18:14:34 +00:00