diff options
| author | Ben Gamari <bgamari.foss@gmail.com> | 2015-11-01 19:06:09 +0100 |
|---|---|---|
| committer | Ben Gamari <ben@smart-cactus.org> | 2015-11-01 19:34:50 +0100 |
| commit | f46f32b922d7ecbee2829937295521f5db1d7997 (patch) | |
| tree | ad0355dcd4d77f3a4bb69f1c5b22d97b21b3714b /compiler/utils/FastFunctions.hs | |
| parent | 65f3c4c0a1304b8d00b46dc0e77ad93fc566ffb1 (diff) | |
| download | haskell-f46f32b922d7ecbee2829937295521f5db1d7997.tar.gz | |
EventLog: Loop fwrite if necessary during flush
Previously the eventlog flush code would fail if `fwrite` wrote less
than the requested amount. Like all Unix stream I/O operations, however,
`fwrite` isn't guaranteed to write the entire buffer. Here we loop as
long as `fwrite` succeeds in writing anything.
Fixes #11041.
Test Plan: Validate with eventlog
Reviewers: austin, simonmar
Reviewed By: simonmar
Subscribers: thomie
Differential Revision: https://phabricator.haskell.org/D1415
GHC Trac Issues: #11041
Diffstat (limited to 'compiler/utils/FastFunctions.hs')
0 files changed, 0 insertions, 0 deletions
