Skip to main content

socket_path_for

Function socket_path_for 

Source
pub fn socket_path_for(pid: u32) -> PathBuf
Expand 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.