1
1

dir_import.c: Restart fread() on EINTR

Fixes https://dev.yorhel.nl/ncdu/bug/95
Этот коммит содержится в:
Yorhel 2017-03-27 17:12:18 +02:00
родитель 936a9446a8
Коммит 3b55f8c137

Просмотреть файл

@ -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;
}