projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7c3f9fd
)
Let's not accept EAGAIN until we're sure it's possible.
author
Carl Hetherington
<cth@carlh.net>
Wed, 19 Dec 2018 22:24:35 +0000
(22:24 +0000)
committer
Carl Hetherington
<cth@carlh.net>
Wed, 19 Dec 2018 22:24:35 +0000
(22:24 +0000)
src/lib/file_group.cc
patch
|
blob
|
history
diff --git
a/src/lib/file_group.cc
b/src/lib/file_group.cc
index e18b9824e27181543ab271546ac6853d985f90a9..942eb435d87f081e38ef5e48bf53ea0e4dd3cdea 100644
(file)
--- a/
src/lib/file_group.cc
+++ b/
src/lib/file_group.cc
@@
-162,7
+162,7
@@
FileGroup::read (uint8_t* buffer, int amount) const
break;
}
- if (ferror(_current_file)
&& errno != EAGAIN
) {
+ if (ferror(_current_file)) {
throw FileError (String::compose("fread error %1", errno), _paths[_current_path]);
}