Switch to side-by-side view
--- a/src/utils/readfile.cpp +++ b/src/utils/readfile.cpp @@ -102,6 +102,12 @@ } noclosing = false; } + +#if defined O_NOATIME && O_NOATIME != 0 + if (fcntl(fd, F_SETFL, O_NOATIME) < 0) { + // perror("fcntl"); + } +#endif if (cnttoread != (size_t)-1 && cnttoread) { doer->init(cnttoread+1, reason);