1 2 3 4 5 6
use libc; /// Return the process-id (pid) of the current process pub fn pid() -> i32 { unsafe { libc::getpid() } }