bors 6afb8f58d1 Auto merge of #26470 - l0kod:process-session-leader, r=alexcrichton
Add a new method `CommandExt::session_leader(&mut self, on: bool)` to create a new session (cf. `setsid(2)`) for the child process. This means that the child is the leader of a new process group. The parent process remains the child reaper of the new process.

This is not enough to create a daemon process. The *init* process should be the child reaper of a daemon. This can be achieved if the parent process exit. Moreover, a daemon should not have a controlling terminal. To acheive this, a session leader (the child) must spawn another process (the daemon) in the same session.

cc rust-lang/rfcs#941
cc #17176
2015-08-04 21:15:54 +00:00
..
2015-07-30 10:45:00 +02:00
2015-08-02 21:15:01 -07:00
2015-07-29 14:18:24 -07:00
2015-07-01 19:09:14 -07:00
2015-07-28 16:34:01 -07:00
2015-08-02 11:09:37 -07:00