src/solaris/classes/sun/nio/fs/LinuxWatchService.java

Print this page

        

*** 100,111 **** // inotify descriptor private final int ifd; // watch descriptor private volatile int wd; ! LinuxWatchKey(LinuxWatchService watcher, int ifd, int wd) { ! super(watcher); this.ifd = ifd; this.wd = wd; } int descriptor() { --- 100,111 ---- // inotify descriptor private final int ifd; // watch descriptor private volatile int wd; ! LinuxWatchKey(UnixPath dir, LinuxWatchService watcher, int ifd, int wd) { ! super(dir, watcher); this.ifd = ifd; this.wd = wd; } int descriptor() {
*** 264,274 **** } // ensure watch descriptor is in map LinuxWatchKey key = wdToKey.get(wd); if (key == null) { ! key = new LinuxWatchKey(watcher, ifd, wd); wdToKey.put(wd, key); } return key; } --- 264,274 ---- } // ensure watch descriptor is in map LinuxWatchKey key = wdToKey.get(wd); if (key == null) { ! key = new LinuxWatchKey(dir, watcher, ifd, wd); wdToKey.put(wd, key); } return key; }