Skip to content
Snippets Groups Projects
Commit 3b55f8c1 authored by Yorhel's avatar Yorhel
Browse files

dir_import.c: Restart fread() on EINTR

parent 936a9446
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment