feat(libkernel): implement getsid #4192
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/4192"
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 codingreapermaps on 2026-10-12T01:00:13Z.
What
getsidwas a throwing stub. It now follows FreeBSD'skern_getsid(kern_prot.c) for the only guest process: 0 and its own pid return its session id, any other pid returns -1 withESRCH.The session id is the guest's own pid: the guest is taken to lead its own session, as
killandsetsidalready take it to lead its own process group. This is an assumption, not a console measurement, and is recorded in TechnicalDebt.No open pull request implements
getsid; #4138 only has the neighbouring TechnicalDebt line as context.Tested
Windows 11, MinGW-w64 GCC 15.2.0 (WinLibs r7), full build configuration with
BUILD_TESTING=ON. Built and ranguest_ioctl_getsid,guest_kernel_sysandguest_signals: all three pass. The full test suite was not run and no title or homebrew was run.tools/check_conventions.py --base origin/mainpasses.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-12T01:18:07Z.
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)docs/dev/TechnicalDebt.mdL641-644core/libs/prx/libkernel/System/src/Process.cppL45, L204-206docs/dev/TechnicalDebt.mdL643Imported from boykopovar/AnyPS5. Originally posted by codingreapermaps on 2026-10-12T02:27:10Z.
Closing as a duplicate of #4170, which was opened first and implements the same behaviour. Sorry for the overlap, it wasn't open yet when I started on this.
Pull request closed