aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--AUTHORS1
-rw-r--r--src/platforms/posix/posixFile.cpp3
2 files changed, 3 insertions, 1 deletions
diff --git a/AUTHORS b/AUTHORS
index da6f0875..d252ee39 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -19,4 +19,5 @@ Other contributors:
- Benjamin Biron <[email protected]>
- Bertrand Benoit <[email protected]>
- Tim Teulings <[email protected]>
+ - Georg Sauthoff <[email protected]>
diff --git a/src/platforms/posix/posixFile.cpp b/src/platforms/posix/posixFile.cpp
index b371fe73..d04ebc25 100644
--- a/src/platforms/posix/posixFile.cpp
+++ b/src/platforms/posix/posixFile.cpp
@@ -126,7 +126,8 @@ void posixFileWriterOutputStream::write(const value_type* const data, const size
void posixFileWriterOutputStream::flush()
{
- ::fsync(m_fd);
+ if (::fsync(m_fd) == -1)
+ posixFileSystemFactory::reportError(m_path, errno);
}