]> arthur.barton.de Git - netdata.git/commitdiff
O_NOATIME is not supported for proc files
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Mon, 16 Mar 2015 17:13:45 +0000 (19:13 +0200)
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Mon, 16 Mar 2015 17:13:45 +0000 (19:13 +0200)
src/procfile.c

index 9f353a9d819f2709a069c4ba930da5fc2a6f6cfb..3e973d3e06b933a0607299e54ff4e0032c3cfac2 100755 (executable)
@@ -1,5 +1,3 @@
-#define _GNU_SOURCE
-
 #include <stdio.h>
 #include <stdlib.h>
 #include <unistd.h>
@@ -270,7 +268,7 @@ procfile *procfile_readall(procfile *ff) {
 procfile *procfile_open(const char *filename, const char *separators) {
        if(pfdebug) fprintf(stderr, PF_PREFIX ": Opening file '%s'\n", filename);
 
-       int fd = open(filename, O_RDONLY|O_NOATIME, 0666);
+       int fd = open(filename, O_RDONLY, 0666);
        if(fd == -1) {
                fprintf(stderr, PF_PREFIX ": Cannot open file '%s'. Reason: %s\n", filename, strerror(errno));
                return NULL;