seb-m / pyinotify

Monitoring filesystems events with inotify on Linux.
http://github.com/seb-m/pyinotify/wiki
MIT License
2.29k stars 379 forks source link

class Watchmanager should call close() on deletion #192

Open sh-dvl opened 3 years ago

sh-dvl commented 3 years ago

when running over some time, we're run out of file-descriptors, because WatchManager doesn't close it's filedescriptors on deletion of itself.

so please add:

__del__(self): close()

to class WatchManager.