Re: [PATCH 2/2] virCommand: document behavior on no output

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Dec 03, 2010 at 02:28:51PM -0700, Eric Blake wrote:
> Option 2.  Which one should I go with?  By the way, my pending patch
> for converting openvz to use virCommand instead of popen is impacted
> (it has a potential null dereference if we go with option 1).
> 
> * docs/internals/command.html.in: Update documentation.
> * src/util/command.c (virCommandSetOutputBuffer)
> (virCommandSetErrorBuffer, virCommandProcessIO) Guarantee empty
> string on no output.
> ---
>  docs/internals/command.html.in |    8 +++++---
>  src/util/command.c             |   14 ++++++++++++++
>  2 files changed, 19 insertions(+), 3 deletions(-)

The virCommand API is all about safety, so ACK to this one.

Daniel

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]