Function base::sys::unix::getpid

source ·
pub fn getpid() -> Pid
Expand description

This bypasses libc’s caching getpid(2) wrapper which can be invalid if a raw clone was used elsewhere.