summaryrefslogtreecommitdiffstats
path: root/src/command.c
Commit message (Collapse)AuthorAgeFilesLines
* lib: Add a new 'command' mini-library for running external commands.Richard W.M. Jones2012-10-181-0/+752
This is a wrapper or mini-library for running external command, loosely based on libvirt's virCommand interface. Amongst the advantages are: - Can redirect errors into the error log (RHBZ#713678). - Can redirect output into a callback function. - Handles shell quoting properly. - Safely resets signal handlers, closes file descriptors, etc. - Single place where we can implement other improvements in future.