Check return status of fsync (Georg Sauthoff).
This commit is contained in:
parent
f688cbb292
commit
43bbb3c410
1
AUTHORS
1
AUTHORS
@ -19,4 +19,5 @@ Other contributors:
|
||||
- Benjamin Biron <benbiron@gmail.com>
|
||||
- Bertrand Benoit <bsquare@bsquare.levillage.org>
|
||||
- Tim Teulings <rael@edge.ping.de>
|
||||
- Georg Sauthoff <gsauthof@techfak.uni-bielefeld.de>
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user