Increase number of events handled

This commit is contained in:
Arun Prakash Jana 2020-03-14 06:51:52 +05:30
parent 2d952795a8
commit 0ef2b61a17
No known key found for this signature in database
GPG key ID: A75979F35C080412

View file

@ -631,7 +631,7 @@ static const char * const patterns[] = {
/* Event handling */ /* Event handling */
#ifdef LINUX_INOTIFY #ifdef LINUX_INOTIFY
#define NUM_EVENT_SLOTS 8 /* Make room for 8 events */ #define NUM_EVENT_SLOTS 32 /* 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;