Skip to content

Commit

Permalink
Merge pull request gorakhargosh#249 from Witos/witos/fd_leak_fix
Browse files Browse the repository at this point in the history
Fix anon_inode descriptors leakage
  • Loading branch information
tamland committed Jul 9, 2014
2 parents 830510d + af7cd36 commit b7b8b75
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/watchdog/observers/inotify_c.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,7 @@ def close(self):
with self._lock:
wd = self._wd_for_path[self._path]
inotify_rm_watch(self._inotify_fd, wd)
os.close(self._inotify_fd)

def read_events(self, event_buffer_size=DEFAULT_EVENT_BUFFER_SIZE):
"""
Expand Down

0 comments on commit b7b8b75

Please sign in to comment.