about summary refs log tree commit diff
path: root/src/libstd/sys/windows/stack_overflow.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-08-04 21:15:54 +0000
committerbors <bors@rust-lang.org>2015-08-04 21:15:54 +0000
commit6afb8f58d18311109081cfaff2fa5a02948989c3 (patch)
tree53d9e67674cfc62b3617f3d4b2108754fb734a30 /src/libstd/sys/windows/stack_overflow.rs
parenteb11d65d08c3e28cfe3387eaa946d56bdc016900 (diff)
parentb3df1e6b4812d8eefc4e7fdf61264aad15af719c (diff)
downloadrust-6afb8f58d18311109081cfaff2fa5a02948989c3.tar.gz
rust-6afb8f58d18311109081cfaff2fa5a02948989c3.zip
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
Diffstat (limited to 'src/libstd/sys/windows/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions