Browse Source

Break when watch desc becomes 0

master
Arun Prakash Jana 5 years ago
parent
commit
b0960a2e3d
No known key found for this signature in database GPG Key ID: A75979F35C080412
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      src/nnn.c

+ 5
- 0
src/nnn.c View File

@@ -1454,11 +1454,16 @@ static int nextsel(int presel)
event = (struct inotify_event *) ptr; event = (struct inotify_event *) ptr;
DPRINTF_D(event->wd); DPRINTF_D(event->wd);
DPRINTF_D(event->mask); DPRINTF_D(event->mask);
if (!event->wd)
break;

if (event->mask & INOTIFY_MASK) { if (event->mask & INOTIFY_MASK) {
c = CONTROL('L'); c = CONTROL('L');
DPRINTF_S("issue refresh");
break; break;
} }
} }
DPRINTF_S("inotify read done");
} }
} }
#elif defined(BSD_KQUEUE) #elif defined(BSD_KQUEUE)


Loading…
Cancel
Save