Currenty, there's a leak of file descriptors in the INotify::Notifier.watch() method class when calling it with the :recursive flag.
If a directory is opened via Dir.new() it should always be closed via Dir.close() afterwards, otherwise one file descriptor for each watched directory is leaked.
Currenty, there's a leak of file descriptors in the
INotify::Notifier.watch()
method class when calling it with the:recursive
flag.If a directory is opened via
Dir.new()
it should always be closed viaDir.close()
afterwards, otherwise one file descriptor for each watched directory is leaked.