mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-11-01 12:45:56 +00:00
A Windows process started without a standard handle, such as a detached process or a --windows-gui executable started from Explorer, has descriptors 0 to 2 whose _get_osfhandle is -2. fcntl then threw on their unknown file type, which stopped Halo: Combat Evolved (PPSA99500) at start-up. Open NUL on each of them when libc loads, as Linux and macOS already open /dev/null on a closed standard descriptor. Co-Authored-By: Claude Opus 5.5 <[email protected]>