Function nc::getpid[][src]

pub fn getpid() -> pid_t
Expand description

Get the process ID (PID) of the calling process.

let pid = nc::getpid();
assert!(pid > 0);