devela::_dep::nc

Function getsid

pub unsafe fn getsid(pid: i32) -> i32 
Available on crate feature dep_nc only.
Expand description

Get session Id.

§Examples

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