pub fn setsid() -> Result<pid_t, i32>
Expand description
Create session and set process group ID see setsid(2)
Upon successful completion, the setsid() system call returns the value of the process group ID of the new process group, which is the same as the process ID of the calling process. If an error occurs, setsid() returns -1
§Errors
returns -1
if error