[libvirt] [PATCH] command: allow merging stdout and stderr in string capture

Eric Blake eblake at redhat.com
Fri Feb 3 17:03:03 UTC 2012


On 02/02/2012 06:10 PM, Laine Stump wrote:
> On 02/02/2012 07:17 PM, Eric Blake wrote:
>> Sometimes, its easier to run children with 2>&1 in shell notation,
>> and just deal with stdout and stderr interleaved.  This was already
>> possible for fd handling; extend it to also work when doing string
>> capture of a child process.
>>
>> * docs/internals/command.html.in: Document this.
>> * src/util/command.c (virCommandSetErrorBuffer): Likewise.
>> (virCommandRun, virExecWithHook): Implement it.
>> * tests/commandtest.c (test14): Test it.
>> * daemon/remote.c (remoteDispatchAuthPolkit): Use new command
>> feature.
>> ---
>>
>> In response to:
>> https://www.redhat.com/archives/libvir-list/2012-January/msg01262.html
>>
>> Hmm, I thought I sent this earlier, but can't find it on the archives.
> 
> ACK.

Thanks; pushed.

-- 
Eric Blake   eblake at redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 620 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20120203/d7c4c580/attachment-0001.sig>


More information about the libvir-list mailing list