dir_import.c: Restart fread() on EINTR

Fixes https://dev.yorhel.nl/ncdu/bug/95
This commit is contained in:
Yorhel 2017-03-27 17:12:18 +02:00
parent 936a9446a8
commit 3b55f8c137

View file

@ -107,7 +107,7 @@ static int fill(int n) {
if(r != n) {
if(feof(ctx->stream))
ctx->eof = 1;
else if(ferror(ctx->stream)) {
else if(ferror(ctx->stream) && errno != EINTR) {
dir_seterr("Read error: %s", strerror(errno));
return 1;
}