New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
watchers leak inotify file descriptor when process fork/execs a child #155
Comments
fsnotify currently uses InotifyInit (not InotifyInit1).
This is fine (IMO). What about support on ARM and PPC64? /cc @suihkulokki @TheTincho @clnperez @laboger @tophj-ibm? |
@nathany You mean support for inotify_init1? I can test building this on those arches if it is just that. |
@TheTincho That would be very helpful. Thanks. I wonder if we should be using |
Is there any reason why someone would want the child process to have the inotify file descriptor carried over? Presumably a new one would be created in the child process instead if needed. |
If you're share the inotify fd between between processes, the event kqueue behaves the same way (i.e., child do not inherit kqueue) for the On Wed, Oct 5, 2016 at 2:43 PM, Nathan Youngman notifications@github.com
|
I have just tried PPC64 and ARMel, and it compiles and passes the tests correctly with this patch applied. Do you need me to test somewhere else too? |
* Add the unix.O_CLOEXEC to the Pipe2 call * Add unix.EPOLL_CLOEXEC to the Epoll call
* Add the unix.O_CLOEXEC to the Pipe2 call * Add unix.EPOLL_CLOEXEC to the Epoll call
* Add the unix.O_CLOEXEC to the Pipe2 call * Add unix.EPOLL_CLOEXEC to the Epoll call
* Add the unix.O_CLOEXEC to the Pipe2 call * Add unix.EPOLL_CLOEXEC to the Epoll call
inotify.go
needs a tiny patch in NewWatcher.The text was updated successfully, but these errors were encountered: