tools/xentoollog: update tty detection in stdiostream_progress
authorOlaf Hering <olaf@aepfle.de>
Wed, 27 Feb 2013 14:16:36 +0000 (14:16 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Thu, 28 Feb 2013 16:13:46 +0000 (16:13 +0000)
commit2f80ac9c0e8fe117b3e9cf71f799b482c6ca312f
treeef6097668e387486d184f2541f637b278c73681b
parent345cf1f8c7a0d563c735d63c72048e2747393a46
tools/xentoollog: update tty detection in stdiostream_progress

As suggested by IanJ:
Check isatty only once to preserve the errno of ->progress users, and to
reduce the noice in strace output.

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxc/xtl_logger_stdio.c