setsid

Function setsid 

Source
pub fn setsid() -> c_int
Expand description

创建一个新的会话并设置进程组 ID

§返回值

  • 成功返回新会话的进程组 ID, 失败返回负错误码