Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- inotify inotify_event event->name is empty
- fd = inotify_init();
- wd = inotify_add_watch (m_fd, "/tmp/myfile", IN_MODIFY | IN_CREATE | IN_DELETE);
- wd1 = inotify_add_watch (m_fd, "/tmp/myfile2", IN_MODIFY | IN_CREATE | IN_DELETE);
- -----
- unsigned char buffer[BUFFER_SIZE];
- ssize_t len = ACE_OS::read(fd, buffer, sizeof(buffer));
- ssize_t i = 0;
- while (i < len)
- {
- inotify_event *event = ( struct inotify_event * ) &buffer[ i ];
- i += EVENT_SIZE + event->len;
- }
Add Comment
Please, Sign In to add comment