From bb50acdcb8073654ea667b8c0272e335bd43f844 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Thu, 14 Apr 2022 20:12:14 +0200 Subject: Merging upstream version 1.34.0. Signed-off-by: Daniel Baumann --- libnetdata/procfile/procfile.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libnetdata/procfile/procfile.h') diff --git a/libnetdata/procfile/procfile.h b/libnetdata/procfile/procfile.h index d29adf8e6..5263ad770 100644 --- a/libnetdata/procfile/procfile.h +++ b/libnetdata/procfile/procfile.h @@ -103,4 +103,7 @@ extern int procfile_adaptive_initial_allocation; // return the Nth word of the current line #define procfile_lineword(ff, line, word) (((line) < procfile_lines(ff) && (word) < procfile_linewords((ff), (line))) ? procfile_word((ff), (ff)->lines->lines[(line)].first + (word)) : "") +// Open file without logging file IO error if any +#define procfile_open_no_log(filename, separators, flags) procfile_open(filename, separators, flags | PROCFILE_FLAG_NO_ERROR_ON_FILE_IO) + #endif /* NETDATA_PROCFILE_H */ -- cgit v1.2.3