From ae4ac524adcb751242823414f702d0c9976c88cc Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 2 Jun 2019 15:18:27 +0200 Subject: [PATCH] CIODevice: Update m_error if a write() fails. --- LibCore/CIODevice.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/LibCore/CIODevice.cpp b/LibCore/CIODevice.cpp index bf1fdb68b2..5171821b39 100644 --- a/LibCore/CIODevice.cpp +++ b/LibCore/CIODevice.cpp @@ -208,6 +208,7 @@ bool CIODevice::write(const byte* data, int size) int rc = ::write(m_fd, data, size); if (rc < 0) { perror("CIODevice::write: write"); + set_error(errno); return false; } return rc == size;