[libvirt] PATCH: Fix infinite loop when QEMU quits at startup

Guido Günther agx at sigxcpu.org
Sat Jan 31 13:58:38 UTC 2009


Hi Daniel,
On Fri, Jan 30, 2009 at 11:37:35AM +0000, Daniel P. Berrange wrote:
> @@ -670,11 +674,17 @@ qemudReadMonitorOutput(virConnectPtr con
>                                   _("Failure while reading %s startup output"), what);
>                  return -1;
>              }
> +        } else if (ret == 0) {
> +            return 0;
This part causes problems for me if qemu didn't get a chance to dump
it's output yet and so we hit EOF immediately since we don't respect the
poll timeout. Reverting this one hunk works around the issue.
I can look into fixing this properly but it will be a couple of days
until I get round to.
Cheers,
 -- Guido




More information about the libvir-list mailing list