diff options
author | Julian Andres Klode <jak@debian.org> | 2015-12-28 22:30:44 +0100 |
---|---|---|
committer | Julian Andres Klode <jak@debian.org> | 2015-12-28 22:30:44 +0100 |
commit | 1f5062f656b4919ff1d3126c413c40e53fdd1ab2 (patch) | |
tree | d735762c50362885f47b8982207780c825580883 /po | |
parent | 1a3296c0bd67c46c6ff791345b6101edcb97e778 (diff) |
BufferedFileFdPrivate: Make InternalFlush() save against errors
Previously, if flush errored inside the loop, data could have
already been written to the wrapped descriptor without having
been removed from the buffer.
Also try to work around EINTR here. A better solution might be
to have the individual privates detect an interrupt and return
0 in such a case, instead of relying on errno being untouched
in between the syscall and the return from InternalWrite.
Diffstat (limited to 'po')
0 files changed, 0 insertions, 0 deletions