Skip to content

Conversation

iteratee
Copy link

@iteratee iteratee commented Sep 3, 2020

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.

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant