Hi, sorry for replying so late.
At Wed, 19 Dec 2012 15:31:54 -0700,
Eric Blake wrote:
>
> On 12/18/2012 08:14 AM, Benjamin Wang (gendwang) wrote:
> > For libvirt java, there are similar issue. I have changed code as following
> > in Collect.java. Please also give your comments.
> > public in
On 12/18/2012 08:14 AM, Benjamin Wang (gendwang) wrote:
> Now if the cable is unplugged and the application call virConnectClose to
> release connection, the code will enter into the error procedure, the
> connection
> Can't be released. I have changed the following two parts to fix this issue.
Hi,
The following is the current code to release connection in libvirt.
int
virConnectClose(virConnectPtr conn)
{
...
if (!VIR_IS_CONNECT(conn)) {
virLibConnError(VIR_ERR_INVALID_CONN, __FUNCTION__);
goto error;
}
...
error:
virDispatchError(NULL);
return ret;
}