Function nc::getsid[][src]

pub fn getsid(pid: pid_t) -> pid_t
Expand description

Get session Id.

let ppid = nc::getppid();
let sid = nc::getsid(ppid);
assert!(sid > 0);