Function getpid

Source
pub fn getpid() -> pid_t
Expand description

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