Implemented inotify event reading loop