Skip to content

watchers leak inotify file descriptor when process fork/execs a child #155

@msolo-dropbox

Description

@msolo-dropbox

inotify.go needs a tiny patch in NewWatcher.

  // Set IN_CLOEXEC by default. The majority of use cases should not
  // pass this descriptor down.
  fd, errno := syscall.InotifyInit1(syscall.IN_CLOEXEC)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions