[Libguestfs] [PATCH v2 1/2] daemon: run 'udevadm settle' with --exit-if-exists option

Richard W.M. Jones rjones at redhat.com
Thu Apr 13 16:06:51 UTC 2017


On Thu, Apr 13, 2017 at 07:01:09PM +0300, Pavel Butsykin wrote:
> I missed that that reply_with_error is not just error output, but may
> lead to termination of the client. Agree.

That's right -- reply_with_error sends a protocol message back to the
client, so it's important to only call it when the client (ie. the
library) is expecting it.  In this case, just ignore the error or call
perror or fprintf (stderr, ...).

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-builder quickly builds VMs from scratch
http://libguestfs.org/virt-builder.1.html




More information about the Libguestfs mailing list