On Wed, 2005-03-16 at 16:28 -0500, John McCutchan wrote: > Hey, > > Inotify has changed (for the final time - no, really) it's user space > interface. Robert Love sent patches out this afternoon, and here is an > update for gamin. > > In short, inotify now expects a fd instead of a path. > > old way, > wd = ioctl(devfd, "/foo/bar", INOTIFY_WATCH, mask); > > new way, > fd = open("/foo/bar", O_RDONLY); > if (fd < 0) > return > wd = ioctl(devfd, fd, INOTIFY_WATCH, mask); > close(fd); // <---- Close the fd immediately after requesting the watch. > > This interface has made the kernel guys happy, so this should be the > last interface change. > Probably missing something here, but with latest cvs gamin, and latest inotify patch (seems like it does the fd thing) from rml's kernel.org site, its not working. If you need help debugging, let me know what you need. -- Martin Schlemmer
Attachment:
signature.asc
Description: This is a digitally signed message part