We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9952ef5 + d436a96 commit df729d2Copy full SHA for df729d2
src/cgroup.c
@@ -124,7 +124,11 @@ static void setup_oom_handling_cgroup_v2(int pid)
124
}
125
126
if (inotify_add_watch(ifd, memory_events_file_path, IN_MODIFY) < 0) {
127
- nwarnf("Failed to add inotify watch for %s", memory_events_file_path);
+ if (errno == ENOENT) {
128
+ ndebugf("memory.events file does not exist at %s, skipping OOM monitoring", memory_events_file_path);
129
+ } else {
130
+ nwarnf("Failed to add inotify watch for %s", memory_events_file_path);
131
+ }
132
return;
133
134
0 commit comments