One more return code check.

This commit is contained in:
Ernie Pasveer
2025-12-09 11:29:30 -06:00
parent 45336a4da7
commit 8a4fe9b913
+4 -1
View File
@@ -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.