en file: " << "/tmp/tt" << " Error: " <<
strerror(errno) << std::endl;
// todo throw exception
}
struct kevent ke;
EV_SET(&ke, fd, EVFILT_VNODE, EV_ADD, NOTE_DELETE | NOTE_RENAME |
NOTE_EXTEND, 0, NULL);
if (kevent(kq, &ke, 1, NULL
Hi,
I'm trying to use a kqueue to listen for VNODE events on a worker thread. I
want new events to be registered with the kqueue by a separate thread.
I have been referring to this example [URL="
http://doc.geoffgarside.co.uk/kqueue/file.html";]
http://doc.geoffgarside.co.uk/kqueue/file.html[/UR