mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 03:25:20 +00:00
* src/libvir.c: Karel pointed out handle was lost in
virConnectOpenReadOnly() Daniel
This commit is contained in:
parent
46202b3705
commit
41e990528a
@ -1,3 +1,8 @@
|
||||
Tue Jan 24 14:09:37 CET 2006 Daniel Veillard <veillard@redhat.com>
|
||||
|
||||
* src/libvir.c: Karel pointed out handle was lost in
|
||||
virConnectOpenReadOnly()
|
||||
|
||||
Mon Jan 23 23:53:07 CET 2006 Daniel Veillard <veillard@redhat.com>
|
||||
|
||||
* docs/site.xsl docs/*.png docs/*.html: update the images from Diana,
|
||||
|
@ -147,6 +147,9 @@ virConnectOpenReadOnly(const char *name) {
|
||||
handle = xenHypervisorOpen();
|
||||
if (handle >= 0)
|
||||
method++;
|
||||
else
|
||||
handle = -1;
|
||||
|
||||
xshandle = xs_daemon_open_readonly();
|
||||
if (xshandle != NULL)
|
||||
method++;
|
||||
@ -155,7 +158,7 @@ virConnectOpenReadOnly(const char *name) {
|
||||
if (ret == NULL)
|
||||
goto failed;
|
||||
ret->magic = VIR_CONNECT_MAGIC;
|
||||
ret->handle = -1;
|
||||
ret->handle = handle;
|
||||
ret->xshandle = xshandle;
|
||||
if (xend_setup(ret) == 0)
|
||||
method++;
|
||||
|
Loading…
Reference in New Issue
Block a user