mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-11-05 13:20:11 +00:00
flock on a descriptor that is not open threw a runtime_error from the failed Windows lock call, ending the title. FreeBSD 11.4 sys_flock fails it with EBADF (fget) and a descriptor that is not a vnode, such as a pipe, with EOPNOTSUPP. The guest flock now checks the descriptor first, on Windows through the OS handle and elsewhere through fstat. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>