Skip to main content

run_watched

Function run_watched 

Source
pub fn run_watched(
    program: &str,
    args: &[&str],
    env: &[(&str, &str)],
    database_url: Option<&str>,
) -> Result<()>
Expand description

Runs a command, forwarding its output, and fails if it goes quiet.

database_url is the database the child works against, queried for diagnostics if it stalls; the ambient DATABASE_URL is deliberately not consulted, as it may name a different server.