[][src]Function fork::setsid

pub fn setsid() -> Result<pid_t, ()>

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