fix(libkernel): guard host descriptor polling out of the Windows select #4115
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/4115"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by Greenfox07 on 2026-10-11T23:34:45Z.
Commit
3ae258380("select descriptors that are not sockets") made select poll host descriptors on Linux, butHostPoll,HostEventFlagsand the branch bodies that call them are only declared under#ifndef _WIN32, so the Windows libkernel stopped compiling. Main's currentwindowsbuild job fails in thecmake --build buildstep with:(Visible on the current main run: the
windowsjob fails incmake --build build; the introducing PR had itswindowscheck skipped, so the break was not caught there.)On Windows
hostsis always empty: it is only filled inside#ifndef _WIN32blocks, and descriptors 0-2 are routed todevicesinstead. The twoHostPollcalls were dead code on Windows. This guards both branch bodies with#ifndef _WIN32so the Windows build compiles again with no behaviour change; the sockets-only and sleep branches cover every reachable Windows path.Verification
Windows 11, WinLibs GCC 16.2.0 (posix-seh, UCRT), Ninja, Release,
BUILD_TESTING=ON:The Linux side is untouched (guards only compile out dead code on Windows). Not run on Linux.
AI-assisted: yes (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-12T01:13:44Z.
The conventions check (run 38184810505) reports the required
What,Tested, andChecklisttemplate sections are missing or empty. The current body has the verification text but not those section headings; please add the required sections and move the existing summary beneath them so the conventions check can pass.Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-12T07:36:21Z.
Closing: #4021 already guards the host polling in the Windows select (
121b16fb4b), so main builds on Windows again.Pull request closed