[Libguestfs] [PATCH nbdkit 5/9 patch split 5/5] server: Indirect slow path, non-self-contained functions through the server.

Richard W.M. Jones rjones at redhat.com
Thu Mar 26 21:43:02 UTC 2020


On Thu, Mar 26, 2020 at 08:13:23PM +0000, Richard W.M. Jones wrote:
> diff --git a/server/public.c b/server/public.c
> index 33d40688..56302bb4 100644
> --- a/server/public.c
> +++ b/server/public.c
> @@ -30,34 +30,21 @@
...
> -#include <poll.h>

FWIW it was dropping this header which was causing
test-delay-shutdown.sh to fail.

Because nbdkit_shutdown tests for defined(POLLRDHUP), which was no
longer defined, so it was falling back to the nanosleep(2) version of
the function, and that broke the test because it actually slept.

I've added it back to my local copy.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-df lists disk usage of guests without needing to install any
software inside the virtual machine.  Supports Linux and Windows.
http://people.redhat.com/~rjones/virt-df/




More information about the Libguestfs mailing list