mirror of
https://code.blicky.net/yorhel/ncdu.git
synced 2026-01-12 17:08:39 -09:00
dir_import.c: Restart fread() on EINTR
Fixes https://dev.yorhel.nl/ncdu/bug/95
This commit is contained in:
parent
936a9446a8
commit
3b55f8c137
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue