Function nc::getsid

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

Get session Id.

§Example

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