aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/directory.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/directory.c b/src/directory.c
index 52f9cb48b..a3efdf15e 100644
--- a/src/directory.c
+++ b/src/directory.c
@@ -1052,7 +1052,7 @@ int readDirectoryDB(void)
} else {
ERROR("db info not found in db file\n");
ERROR("you should recreate the db using --create-db\n");
- fseek(fp, 0, SEEK_SET);
+ while (fclose(fp) && errno == EINTR) ;
return -1;
}
}