dsoprea / PyInotify

An efficient and elegant inotify (Linux filesystem activity monitor) library for Python. Python 2 and 3 compatible.
GNU General Public License v2.0
242 stars 73 forks source link

add remove_watches to stop all watches #87

Open yelizariev opened 3 years ago

yelizariev commented 3 years ago

self cleaning by inonify may be not enough if you have an app, that use os.exec* to reload itself. In this case you may reach max_user_watches limit after some of such reloads