From 561a189f49441a4d211c0217dce8127f2ce7c32e Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Sat, 5 Aug 2017 04:06:53 +0300 Subject: Fix printing progress to non-terminal STDERR --- libbutl/fdstream.hxx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libbutl/fdstream.hxx') diff --git a/libbutl/fdstream.hxx b/libbutl/fdstream.hxx index fa62ff4..3bd8e8b 100644 --- a/libbutl/fdstream.hxx +++ b/libbutl/fdstream.hxx @@ -686,6 +686,12 @@ namespace butl // LIBBUTL_SYMEXPORT fdpipe fdopen_pipe (fdopen_mode = fdopen_mode::none); + + // Test whether a file descriptor refers to a terminal. Throw ios::failure on + // the underlying OS error. + // + LIBBUTL_SYMEXPORT bool + fdterm (int); } #include -- cgit v1.1