mirror of
https://github.com/jarun/nnn.git
synced 2025-01-24 09:46:38 +00:00
Break when watch desc becomes 0
This commit is contained in:
parent
58a7773755
commit
b0960a2e3d
|
@ -1454,11 +1454,16 @@ static int nextsel(int presel)
|
|||
event = (struct inotify_event *) ptr;
|
||||
DPRINTF_D(event->wd);
|
||||
DPRINTF_D(event->mask);
|
||||
if (!event->wd)
|
||||
break;
|
||||
|
||||
if (event->mask & INOTIFY_MASK) {
|
||||
c = CONTROL('L');
|
||||
DPRINTF_S("issue refresh");
|
||||
break;
|
||||
}
|
||||
}
|
||||
DPRINTF_S("inotify read done");
|
||||
}
|
||||
}
|
||||
#elif defined(BSD_KQUEUE)
|
||||
|
|
Loading…
Reference in a new issue