We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d75e8b8 + 31280a1 commit 751ce28Copy full SHA for 751ce28
cgroup2/manager.go
@@ -745,7 +745,7 @@ func (c *Manager) isCgroupEmpty() bool {
745
// MemoryEventFD returns inotify file descriptor and 'memory.events' inotify watch descriptor
746
func (c *Manager) MemoryEventFD() (int, uint32, error) {
747
fpath := filepath.Join(c.path, "memory.events")
748
- fd, err := unix.InotifyInit()
+ fd, err := unix.InotifyInit1(unix.IN_CLOEXEC)
749
if err != nil {
750
return 0, 0, fmt.Errorf("failed to create inotify fd: %w", err)
751
}
0 commit comments