Function nc::setsid [−][src]
pub fn setsid() -> Result<pid_t, Errno>
Expand description
Create a new session if the calling process is not a process group leader.
let ret = nc::setsid(); assert!(ret.is_ok()); assert_eq!(ret, Ok(nc::getpid()));