nnn

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit b0960a2e3d89f680eb5a0bc46379309d3a1eae05
parent 58a777375539743ca5815d7fdfc3a62f26b28a1f
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date:   Wed, 20 Mar 2019 05:50:20 +0530

Break when watch desc becomes 0

Diffstat:
Msrc/nnn.c | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/nnn.c b/src/nnn.c @@ -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)