mirror of
https://github.com/jarun/nnn.git
synced 2024-09-29 09:17:51 +00:00
Track up to 8 events
This commit is contained in:
parent
3489c87b98
commit
d493f78dea
|
@ -428,7 +428,7 @@ static const char * const envs[] = {
|
||||||
|
|
||||||
/* Event handling */
|
/* Event handling */
|
||||||
#ifdef LINUX_INOTIFY
|
#ifdef LINUX_INOTIFY
|
||||||
#define NUM_EVENT_SLOTS 16 /* Make room for 16 events */
|
#define NUM_EVENT_SLOTS 8 /* Make room for 8 events */
|
||||||
#define EVENT_SIZE (sizeof(struct inotify_event))
|
#define EVENT_SIZE (sizeof(struct inotify_event))
|
||||||
#define EVENT_BUF_LEN (EVENT_SIZE * NUM_EVENT_SLOTS)
|
#define EVENT_BUF_LEN (EVENT_SIZE * NUM_EVENT_SLOTS)
|
||||||
static int inotify_fd, inotify_wd = -1;
|
static int inotify_fd, inotify_wd = -1;
|
||||||
|
|
Loading…
Reference in a new issue