Commit Graph
5 Commits
Author SHA1 Message Date
xXPBSXxandClaude Sonnet 5.5 0e2252f638 fix(libkernel): accept flock on a directory descriptor on Windows
FreeBSD 11.4's sys_flock only requires a vnode descriptor, so flock on a directory descriptor succeeds. On Windows the call reached LockFileEx, which rejects a directory handle with ERROR_INVALID_PARAMETER, and flock_nid_postfix turned that into a runtime_error that aborted the process. A directory descriptor now returns 0 without taking a lock; the new guest_file_lock_directory case covers it and the debt entry records that no lock is held.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-21 13:35:39 +02:00
thuanquangandClaude ed021c48c5 test(libkernel): check the file lock process case with four child processes
Co-Authored-By: Claude <noreply@anthropic.com>
2026-10-20 01:16:11 +07:00
thuanquangandClaude 83e7dcfce2 test(libkernel): wait up to 30 s for the file lock test's child process
Co-Authored-By: Claude <noreply@anthropic.com>
2026-10-19 19:25:47 +07:00
David b962be8536 test(libc): read and write through another descriptor while a flock is held 2026-10-13 22:29:20 +00:00
Ondra97 bd842bc7d2 fix(libs): share Windows flock state between duplicated descriptors 2026-10-12 16:03:47 +02:00