fix(libkernel): inherit accepted socket nonblocking mode #2079
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2079"
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 STUPIDCONTEM on 2026-10-09T07:03:12Z.
Evidence review (2026-10-09)
Game/title evidence has not been established. Validation below is host regression/build evidence only; it does not establish title compatibility. Older checked items and test results describe their stated revisions, not current merge readiness.
Game/title ID: none verified. No PS5 title execution is claimed.
What
Accepted TCP connections now inherit the listener's guest nonblocking mode. Previously the accepted socket's cached mode always started as blocking; on Windows this disagreed with the inherited native mode, while Linux's native accept does not inherit O_NONBLOCK. Set both the accepted native socket and its guest cache from the listener mode before publishing the descriptor.
The contract follows FreeBSD stable/11 accept(2). The accepted socket remains independently configurable after creation. Mode-setting errors close the newly accepted native socket through the existing guard.
Tested
Windows 10 Pro 19045, WinLibs GCC 15.2.0 UCRT posix SEH r7, Release, BUILD_TESTING=ON; based on main
f145139676.No Linux or title run was performed. Open #1091 adds socket readiness events and #1727 adds read/write wrappers in the same file; neither changes accept mode inheritance. The changes are confined to accept and its existing TCP regression.
Checklist
Pull request closed