diff options
-rw-r--r-- | LibCore/CIODevice.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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; |