mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
Introduce new APIs for spawning processes
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. (msg_gen_function): Add virCommandError. * po/POTFILES.in: New translation. * .x-sc_avoid_write: Add exemption. * tests/.gitignore: Ignore new built file.
This commit is contained in:
committed by
Eric Blake
parent
fce3baee26
commit
f16ad06fb2
@@ -78,6 +78,7 @@ src/uml/uml_driver.c
|
||||
src/util/authhelper.c
|
||||
src/util/bridge.c
|
||||
src/util/cgroup.c
|
||||
src/util/command.c
|
||||
src/util/conf.c
|
||||
src/util/dnsmasq.c
|
||||
src/util/hooks.c
|
||||
|
||||
Reference in New Issue
Block a user