Session cleanup now tracks which machine a process belongs to, so container ids stop colliding.
What's wrong with this entry?
Each registered session now records which machine and process namespace its process id belongs to, and the sweep that clears out dead sessions skips any entry recorded elsewhere. Previously a process id from another container could match a live local process and be misread.
- On Linux and WSL the identifier is derived from
/etc/machine-idplus/proc/self/ns/pid; other platforms use a fixed value. - Both the session key files and the pid files are checked this way.
- Windows container environments skip the registry sweep entirely, detected by
CONTAINER_SANDBOX_MOUNT_POINTbeing set orUSERNAMEbeingContainerAdministratororContainerUser.
pidDomain: await Yo(),
Strings lifted out of the shipped bundle, so the claim above can be checked against them.