On Mon, Jul 17, 2023 at 04:55:40PM +0200, Denis V. Lunev wrote: > We are going to pass additional flag inside next patch. > > Signed-off-by: Denis V. Lunev <d...@openvz.org> > CC: Eric Blake <ebl...@redhat.com> > CC: Vladimir Sementsov-Ogievskiy <vsement...@yandex-team.ru> > CC: <qemu-sta...@nongnu.org> > --- > qemu-nbd.c | 19 +++++++++++++------ > 1 file changed, 13 insertions(+), 6 deletions(-)
We could also have just promoted any additional variables to be shared between the parent and child from stack-local in main() to global; but this refactoring seems cleaner. Reviewed-by: Eric Blake <ebl...@redhat.com> -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org