mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-11-05 13:20:11 +00:00
close() of a descriptor that is not open calls _close, which raises the UCRT invalid-parameter handler before returning EBADF. In a relinked title that handler is libc's crash reporter, so an ordinary close of a closed descriptor printed a FATAL report and every thread's stack. The call now runs with the thread-local no-op handler, as dup and dup2 already do. Co-Authored-By: Claude Opus 5.5 <[email protected]>