PyInotify icon indicating copy to clipboard operation
PyInotify copied to clipboard

Add support for BSD's libinotify

Open iteratee opened this issue 5 years ago • 0 comments

libinotify emulates linux's inotify interface via a worker thread and kqueue watches on the files.

The interface is compatible, but we need to change two things: First, where we find the symbols for inotify, as they are in libinotify and not in libc. Second, we can't use epoll, so we instead use kqueue on the watch descriptor. There are scaling limits on the number of watches as each watched file consumes a file descriptor, but for many small projects this is sufficient.

I'm welcome to restructure the conditionals if there's a cleaner way. This is just a good start to compatibility.

iteratee avatar Sep 03 '20 03:09 iteratee