Re: [libvirt] [PATCH] virsh: properly interleave shared stdout and stderr

2011-08-19 Thread Eric Blake
On 08/19/2011 12:34 PM, Laine Stump wrote: On 08/19/2011 11:23 AM, Eric Blake wrote: Without this patch, invoking 'virsh>file 2>&1' results in error messages appearing before normal output, even if they occurred later in time than the normal output (since stderr is unbuffered, but stdout waits u

Re: [libvirt] [PATCH] virsh: properly interleave shared stdout and stderr

2011-08-19 Thread Laine Stump
On 08/19/2011 11:23 AM, Eric Blake wrote: Without this patch, invoking 'virsh>file 2>&1' results in error messages appearing before normal output, even if they occurred later in time than the normal output (since stderr is unbuffered, but stdout waits until a full buffer). * tools/virsh.c (print

[libvirt] [PATCH] virsh: properly interleave shared stdout and stderr

2011-08-19 Thread Eric Blake
Without this patch, invoking 'virsh >file 2>&1' results in error messages appearing before normal output, even if they occurred later in time than the normal output (since stderr is unbuffered, but stdout waits until a full buffer). * tools/virsh.c (print_job_progress, vshError): Flush between str