diff --git a/logApp/src/inotify_wrap.c b/logApp/src/inotify_wrap.c index 269cb2b..d0d14d1 100644 --- a/logApp/src/inotify_wrap.c +++ b/logApp/src/inotify_wrap.c @@ -117,12 +117,12 @@ retry: } PyErr_SetFromErrno(PyExc_OSError); goto fail; - } else if(ret=EVTMINSIZE) { + while((size_t)ret>=EVTMINSIZE) { PyObject *tuple; struct inotify_event *evt=buf; ssize_t evtsize;