pub(crate) async fn spawn_process(
    state_updater: &ProcessStateUpdater,
    cmd: Command,
    send_sigterm: bool
) -> Result<ExitStatus, Error>