What is the proper way to use inotify?
Documentation ( from Monitor file system activity with inotify ) The inotify C API inotify provides three system calls to build file system monitors of all kinds: inotify_init() creates an instance of the inotify subsystem in the kernel and returns a file descriptor on success and -1 on failure. Like other system calls, if inotify_init() … Read more