pub fn getsid(pid: pid_t) -> pid_t
Get session Id.
let ppid = nc::getppid(); let sid = nc::getsid(ppid); assert!(sid > 0);