mirror of
https://github.com/epasveer/seer.git
synced 2026-08-30 09:00:42 +08:00
One more return code check.
This commit is contained in:
@@ -83,7 +83,10 @@ void SeerConsoleWidget::handleText (const char* buffer, int count) {
|
||||
// Write text to stdout on terminal that started Seer..
|
||||
// Ignore errors.
|
||||
if (isStdoutEnabled()) {
|
||||
(void)write (STDOUT_FILENO, buffer, count);
|
||||
ssize_t n = ::write (STDOUT_FILENO, buffer, count);
|
||||
if (n < count) {
|
||||
qDebug("Can't write stdout to terminal");
|
||||
}
|
||||
}
|
||||
|
||||
// Write text to Ansi widget.
|
||||
|
||||
Reference in New Issue
Block a user