pub fn socket_path_for(pid: u32) -> PathBufExpand description
Compute the socket path for the current process. Honors
XDG_RUNTIME_DIR when set (per the freedesktop runtime
convention) and falls back to /tmp otherwise. The pid is
part of the filename so multiple concurrent nmbrs runs don’t
collide and the inspector can disambiguate them.