fix(libkernel): return EPIPE for writes to closed pipes #5265
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/5265"
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 MarcZX10 on 2026-10-13T16:00:27Z.
What
Map Windows writes to a pipe with no readers to
EPIPEin both the native write path and vectored stdio transfer path. Add a guest regression test for the closed-pipe write behavior.Tested
Linux: built
guest_pipe_closed_write_tests;guest_pipe_closed_writepassed (1/1).python3 tools/check_conventions.py --base upstream/mainandgit diff --check upstream/mainpassed. Windows-specific error mapping was not executed locally.Checklist
main; no other open PR implements the same functions.mdfiles or images added to repositoryImported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-13T16:35:06Z.
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
main)core/libs/prx/libkernel/CMakeLists.txtL1250Imported from boykopovar/AnyPS5. Originally posted by LeandroLP23 on 2026-10-13T22:56:16Z.
Windows check, since this is a Windows-only remap. Setup: Windows 11 (26300), WinLibs GCC 15.2.0, Release, head
e0f0350a5merged ontomain30f961266.guest_pipe_closed_writepasses.main'sFile/src/Open.cppandFile/src/Stdio.cppand the PR's test: it fails. The test'sRequireaborts (FATAL: abort() (SIGABRT), exit0xc0000409), so a write to a pipe whose reader is closed does not giveEPIPEthere.AI-assisted: yes (Claude Code)
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-13T23:27:04Z.
Thanks for the Windows control run. The focused test passes with this change and fails with the main source files, which gives useful independent confirmation of the EPIPE path on Windows.
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-14T02:30:30Z.
Closing: no title is known to reach this. With the queue at 700+ open PRs, please hold off on new PRs that don't name a title needing the change until it's down. If a title stops on this on current main, reopen with the title ID and the log line.
Pull request closed