aboutsummaryrefslogtreecommitdiff
path: root/paludis/util/tee_output_stream.cc
diff options
context:
space:
mode:
Diffstat (limited to 'paludis/util/tee_output_stream.cc')
-rw-r--r--paludis/util/tee_output_stream.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/paludis/util/tee_output_stream.cc b/paludis/util/tee_output_stream.cc
index 32899685b..d179318f8 100644
--- a/paludis/util/tee_output_stream.cc
+++ b/paludis/util/tee_output_stream.cc
@@ -50,6 +50,15 @@ TeeOutputStreamBuf::overflow(int_type c)
return c;
}
+int
+TeeOutputStreamBuf::sync()
+{
+ for (std::list<std::ostream *>::iterator i(_imp->streams.begin()), i_end(_imp->streams.end()) ;
+ i != i_end ; ++i)
+ **i << std::flush;
+ return 0;
+}
+
std::streamsize
TeeOutputStreamBuf::xsputn(const char * s, std::streamsize num)
{