Java WatchService does not work in some folders

I want to use Java 7 WatchService to track the /proc folder, but it doesnโ€™t work (changes made to the folder are not reported), I tested other folders like /home/user/Desktop and /tmp and it works. What could be the reason? Is it because of permissions? /proc clearly owned by root, while the other folder belongs to the registered user. /tmp however also belongs to root, but it works. I use this basic implementation to test it.

My OS is Ubuntu 13.10 64bit. Oracle Java 1.7.0_51.

0
source share

Source: https://habr.com/ru/post/987046/


All Articles