O_NOATIME is not supported for proc files
Costa Tsaousis (ktsaou) committed
Mar 16, 2015 at 19:13 UTC
c00ea4b66ed6f0bd72632ec8e39f5bd370761515
1 file changed
+1
-3
src/procfile.c
+1
-3
@@ -1,5 +1,3 @@
1
-#define _GNU_SOURCE
2
-
1
#include <stdio.h>
2
#include <stdlib.h>
3
#include <unistd.h>
@@ -270,7 +268,7 @@ procfile *procfile_readall(procfile *ff) {
268
procfile *procfile_open(const char *filename, const char *separators) {
269
if(pfdebug) fprintf(stderr, PF_PREFIX ": Opening file '%s'\n", filename);
270
273
- int fd = open(filename, O_RDONLY|O_NOATIME, 0666);
271
+ int fd = open(filename, O_RDONLY, 0666);
272
if(fd == -1) {
273
fprintf(stderr, PF_PREFIX ": Cannot open file '%s'. Reason: %s\n", filename, strerror(errno));
274
return NULL;