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 <[email protected]> > CC: Eric Blake <[email protected]> > CC: Vladimir Sementsov-Ogievskiy <[email protected]> > CC: <[email protected]> > --- > 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 <[email protected]> -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org
