dir_import.c: Restart fread() on EINTR
Fixes https://dev.yorhel.nl/ncdu/bug/95
Этот коммит содержится в:
родитель
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;
|
||||
}
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user