Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow me to not care in the slightest about these events #155

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions python2/pyinotify.py
Original file line number Diff line number Diff line change
Expand Up @@ -1263,7 +1263,7 @@ def read_events(self):
self._eventq.append(rawevent)
rsum += s_size + fname_len

def process_events(self):
def process_events(self, ignore_missing=False):
"""
Routine for processing events from queue by calling their
associated proccessing method (an instance of ProcessEvent).
Expand All @@ -1276,7 +1276,7 @@ def process_events(self):
continue
watch_ = self._watch_manager.get_watch(raw_event.wd)
if (watch_ is None) and not (raw_event.mask & IN_Q_OVERFLOW):
if not (raw_event.mask & IN_IGNORED):
if not ignore_missing and not (raw_event.mask & IN_IGNORED):
# Not really sure how we ended up here, nor how we should
# handle these types of events and if it is appropriate to
# completly skip them (like we are doing here).
Expand Down
4 changes: 2 additions & 2 deletions python3/pyinotify.py
Original file line number Diff line number Diff line change
Expand Up @@ -1248,7 +1248,7 @@ def read_events(self):
self._eventq.append(rawevent)
rsum += s_size + fname_len

def process_events(self):
def process_events(self, ignore_missing=False):
"""
Routine for processing events from queue by calling their
associated proccessing method (an instance of ProcessEvent).
Expand All @@ -1261,7 +1261,7 @@ def process_events(self):
continue
watch_ = self._watch_manager.get_watch(raw_event.wd)
if (watch_ is None) and not (raw_event.mask & IN_Q_OVERFLOW):
if not (raw_event.mask & IN_IGNORED):
if not ignore_missing and not (raw_event.mask & IN_IGNORED):
# Not really sure how we ended up here, nor how we should
# handle these types of events and if it is appropriate to
# completly skip them (like we are doing here).
Expand Down