"Daniel P. Berrange" <berrange@xxxxxxxxxx> wrote: > The attached patch implements the library driver for QEMU. ... > +int qemuClose (virConnectPtr conn) { > + if (conn->handle != -1) { > + close(conn->handle); > + conn->handle = -1; > + } > + return 0; > +} Hi Dan, In follow-up discussion you said you knew of other places where it'd be good to check for less-common failures. This "close" is probably one of them.