Sublime Forum

[BUG]: inotify watches are not removed after removing directory from project

#1

Hello dear tech support,

writing you to report some detected strange behavior.

My system suddenly ran out of inotify watches limit. I suspected sublime responsible for this and made the following experiment:

  1. Start sublime .
  2. $ sudo strace -f -qq -e trace=inotify_add_watch,inotify_rm_watch -p pgrep sublime_text
  3. Add some directory to the project.
  4. Look in strace output that there is a number of inotify_add_watch syscalls done.
  5. Remove the added directory from project.
  6. No corresponding inotify_rm_watch syscalls done.

$ subl --version
Sublime Text Build 3114
$ python --version
Python 2.7.12
$ uname -a
Linux thinkpad 4.4.0-31-generic #50-Ubuntu SMP Wed Jul 13 00:07:12 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

Please, let me know if you recognize the finding as a bug.

Best regards,
Vladimir Berlev

0 Likes

#2
0 Likes