fn run_session(
command: &mut Command,
timeout: Option<u64>,
session: &str,
) -> Result<Option<ExitStatus>>Expand description
Runs a session command in its own process group until it exits or reaches the timeout in
seconds, then ends the process group, so no process that the session started keeps running.
Returns None if the session reached the timeout.