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