change event buffer to sizeof(struct inotify_event) + NAME_MAX + 1