+22 October 2015: Wouter
+ - Fix #712: unbound-anchor appears to not fsync root.key.
+
20 October 2015: Wouter
- 1.5.6 release.
- trunk tracks development of 1.5.7.
root_anchor_file);
if(verb && errno != 0) printf("%s\n", strerror(errno));
}
+ fflush(out);
+ fsync(fileno(out));
fclose(out);
}
root_anchor_file);
if(verb && errno != 0) printf("%s\n", strerror(errno));
}
+ fflush(out);
+ fsync(fileno(out));
fclose(out);
}
fatal_exit("could not completely write: %s", fname);
return;
}
+ if(fflush(out) != 0)
+ log_err("could not fflush(%s): %s", fname, strerror(errno));
+ if(fsync(fileno(out)) != 0)
+ log_err("could not fsync(%s): %s", fname, strerror(errno));
if(fclose(out) != 0) {
fatal_exit("could not complete write: %s: %s",
fname, strerror(errno));