On Fri, Mar 15, 2024 at 02:29:41PM +0200, Andrey Drobyshev wrote: > When executing guest commands in *nix environment, we repeat the same > fork/exec pattern multiple times. Let's just separate it into a single > helper which would also be able to feed input data into the launched > process' stdin. This way we can avoid code duplication. > > To keep the history more bisectable, let's replace qmp commands > implementations one by one. Also add G_GNUC_UNUSED attribute to the > helper and remove it in the next commit. > > Originally-by: Yuri Pudgorodskiy <y...@virtuozzo.com> > Signed-off-by: Andrey Drobyshev <andrey.drobys...@virtuozzo.com> > --- > qga/commands-posix.c | 150 +++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 150 insertions(+)
Reviewed-by: Daniel P. Berrangé <berra...@redhat.com> With regards, Daniel -- |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|