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

Re: [Xen-devel] [PATCH 2 of 7] tools/xc: handle tty output differently in stdiostream_progress



Olaf Hering writes ("[Xen-devel] [PATCH 2 of 7] tools/xc: handle tty output 
differently in stdiostream_progress"):
> tools/xc: handle tty output differently in stdiostream_progress
> 
> If the output goes to a tty, rewind the cursor and print everything in a
> single line as it was done up to now. If the output goes to a file or
> pipe print a newline after each progress output. This will fix logging
> of progress messages from xc_save to xend.log.
> 
> To support XTL_STDIOSTREAM_SHOW_PID or XTL_STDIOSTREAM_SHOW_DATE print
> the output via vmessage if the output is not a tty.

Can we lift the call to isatty out of the loop by calling it at
setup ?

Calling it continually is undesirable not really for performance
reasons but because it always trashes errno and because it will make
strace output more noisy.

Thanks,
Ian.

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.