set_pre_exec_to_start_new_session

Function set_pre_exec_to_start_new_session 

Source
pub fn set_pre_exec_to_start_new_session(command: &mut Command) -> &mut Command
Expand description

Configures the process to start a new session, to prevent interactive shells from taking control of the terminal.

For more details: https://registerspill.thorstenball.com/p/how-to-lose-control-of-your-shell