diff options
author | Yorhel <git@yorhel.nl> | 2017-03-27 17:12:18 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2017-03-27 17:14:22 +0200 |
commit | 3b55f8c137d7538e86c879c07b80ed6392cd862f (patch) | |
tree | 40e007485c0c1e8f480934f2ac094143bb1bcab4 | |
parent | 936a9446a8853cf87d3bfd6e3a998e54825e85de (diff) |
dir_import.c: Restart fread() on EINTR
Fixes https://dev.yorhel.nl/ncdu/bug/95
-rw-r--r-- | src/dir_import.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dir_import.c b/src/dir_import.c index eaf625f..48a9e82 100644 --- a/src/dir_import.c +++ b/src/dir_import.c @@ -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; } |