Codebase list virt-viewer / 4455a4c
Avoid caching inactive domain to workaround issues with older XenD (Hiroyuki Kaguchi) Daniel P. Berrange 16 years ago
2 changed file(s) with 15 addition(s) and 12 deletion(s). Raw diff Collapse all Expand all
1010 Atsushi SAKAI <sakaia-at-jp-dot-fujitsu-dot-com>
1111 Richard W.M. Jones <rjones-at-redhat-dot-com>
1212 Guido G\374nther <agx-at-sigxcpu-dot-org>
13 Hiroyuki Kaguchi <fj7025cf-at-aa-dot-jp-dot-fujitsu-dot-com>
1314
1415 ...send patches to get your name here...
1516
802802 }
803803
804804 do {
805 dom = viewer_lookup_domain(conn, name);
806 if (!dom && !waitvnc) {
807 fprintf(stderr, "unable to lookup domain %s\n", name);
808 return 3;
809 }
810 if (!dom)
811 usleep(500*1000);
812 } while (!dom);
813
814 do {
805 do {
806 dom = viewer_lookup_domain(conn, name);
807 if (!dom && !waitvnc) {
808 fprintf(stderr, "unable to lookup domain %s\n", name);
809 return 3;
810 }
811 if (!dom)
812 usleep(500*1000);
813 } while (!dom);
814
815815 viewer_extract_vnc_graphics(dom, &vncport);
816816 if (!vncport && !waitvnc) {
817817 fprintf(stderr, "unable to find vnc graphics for %s\n", name);
818818 return 4;
819819 }
820 if (!vncport)
820 if (!vncport) {
821 virDomainFree(dom);
821822 usleep(300*1000);
823 }
822824 } while (!vncport);
823825 tmpname = virDomainGetName(dom);
824826 if (tmpname != NULL) {
893895 char *uri = NULL;
894896 char *name = NULL;
895897 int opt_ind;
896 const char *sopts = "hVc:";
898 const char *sopts = "hVvc:wd";
897899 static const struct option lopts[] = {
898900 { "help", 0, 0, 'h' },
899901 { "version", 0, 0, 'V' },