Skip to content

Commit

Permalink
Skip unprocessable socket files on Unix (fixes gorakhargosh#509)
Browse files Browse the repository at this point in the history
  • Loading branch information
rrzaripov authored and BoboTiG committed Oct 28, 2019
1 parent 2acd299 commit 7b30473
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/watchdog/observers/kqueue.py
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,12 @@ def _register_kevent(self, path, is_directory):
# eg. .git/index.lock when running tig operations.
# I don't fully understand this at the moment.
pass
elif e.errno == errno.EOPNOTSUPP:
# Probably dealing with the socket or special file
# mounted through a file system that does not support
# access to it (e.g. NFS). On BSD systems look at
# EOPNOTSUPP in man 2 open.
pass
else:
# All other errors are propagated.
raise
Expand Down

0 comments on commit 7b30473

Please sign in to comment.