def run_vzctl(zparams, timeout = config["VZCTL_RETRY_TIMEOUT"]):
    cmd = [vzctlPath] + zparams

    deadline = datetime.datetime.today() + timeout

    while True:
        return_value = subprocess.call(
            cmd, stdout = nullFile, stderr = nullFile
        )

        if return_value == 9 and datetime.datetime.today() < deadline:
            continue
        elif return_value != 0:
            raise SystemError((return_value, str(zparams[0])))
        else:
            return 0
dataset/ETHPy150Open ucrcsedept/galah/galah/sheep/virtualsuites/vz/pyvz.py/run_vzctl/original