1
1
mirror of https://github.com/jarun/nnn.git synced 2024-11-10 06:44:58 +03:00

Break when watch desc becomes 0

This commit is contained in:
Arun Prakash Jana 2019-03-20 05:50:20 +05:30
parent 58a7773755
commit b0960a2e3d
No known key found for this signature in database
GPG Key ID: A75979F35C080412

View File

@ -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)