From: Enrico Forestieri Date: Fri, 15 May 2009 09:20:59 +0000 (+0000) Subject: Really flush output buffers. X-Git-Tag: 2.0.0~6568 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=a5a05e7dfc7446548b573f0b439606fc865708f9;p=features.git Really flush output buffers. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29675 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/support/Systemcall.cpp b/src/support/Systemcall.cpp index 7ca8869c4c..058de000d8 100644 --- a/src/support/Systemcall.cpp +++ b/src/support/Systemcall.cpp @@ -158,7 +158,17 @@ ConOut::ConOut(QProcess * proc) : proc_(proc), outindex_(0), errindex_(0), ConOut::~ConOut() { + if (outindex_) { + outdata_[outindex_] = '\0'; + outindex_ = 0; + cout << outdata_; + } cout.flush(); + if (errindex_) { + errdata_[errindex_] = '\0'; + errindex_ = 0; + cerr << errdata_; + } cerr.flush(); }