[libvirt] [PATCHv2 3/8] Introduce new APIs for spawning processes

Daniel P. Berrange berrange at redhat.com
Thu Dec 2 14:02:54 UTC 2010


On Tue, Nov 23, 2010 at 04:49:56PM -0700, Eric Blake wrote:
> From: Daniel P. Berrange <berrange at redhat.com>
> 
> This introduces a new set of APIs in src/util/command.h
> to use for invoking commands. This is intended to replace
> all current usage of virRun and virExec variants, with a
> more flexible and less error prone API.
> 
> * src/util/command.c: New file.
> * src/util/command.h: New header.
> * src/Makefile.am (UTIL_SOURCES): Build it.
> * src/libvirt_private.syms: Export symbols internally.
> * tests/commandtest.c: New test.
> * tests/Makefile.am (check_PROGRAMS): Run it.
> * tests/commandhelper.c: Auxiliary program.
> * tests/commanddata/test2.log - test15.log: New expected outputs.
> * cfg.mk (useless_free_options): Add virCommandFree.
> * po/POTFILES.in: New translation.
> * .x-sc_avoid_write: Add exemption.
> * tests/.gitignore: Ignore new built file.

ACK


Daniel




More information about the libvir-list mailing list