pub fn run_supervised(
program: &str,
args: &[String],
env: &[(&str, &str)],
termination: &Termination,
) -> Result<()>Expand description
Runs a command with inherited stdio to completion, with no stall budget.
On SIGHUP, SIGINT, SIGQUIT or SIGTERM the group is killed and an error returned, so the
caller unwinds and drops whatever it holds, such as a Postgres cluster.
termination is watched by the caller from before it acquired that state.
The group is a background one on the terminal, so stdin is closed: interactive commands are not supported.