emcrisostomo / fswatch

A cross-platform file change monitor with multiple backends: Apple OS X File System Events, *BSD kqueue, Solaris/Illumos File Events Notification, Linux inotify, Microsoft Windows and a stat()-based backend.
https://emcrisostomo.github.io/fswatch/
GNU General Public License v3.0
5.01k stars 326 forks source link

Provide a function for pull notification instead of callback #135

Closed alimousazy closed 7 years ago

alimousazy commented 7 years ago

I'm trying to implement luajit agent for transferring logs to Graylog.

The issue I'm facing callback is really slow between luajit and C code while luajit program is fast in calling C code the other way around is really slow and hard to optimize .

I'm thinking about pulling function which luajit code can call to wait for events.

Any ideas ?

alimousazy commented 7 years ago

I'm not sure why the library in GPL ? this is really make it hard to contribute to or even fork the project .

emcrisostomo commented 7 years ago

Why are you unhappy about fswatch and libfswatch being licensed under the GPL? The GPL doesn't make forking and contributing more difficult, in my opinion. Would you please elaborate on your reasons?

emcrisostomo commented 7 years ago

Closed for inactivity.