You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
alandekok opened this issue
Aug 4, 2022
· 0 comments
Labels
feature enhancementcategory: a new feature (an extension of functionality)v3.2.xmeta: relates to the v3.2.x branchv4.0.xmeta: relates to the v4.0.x branch
It may be useful to add inotify support for dynamic home servers. That way you can just add / delete files in raddb/home_servers, and the server will automatically load / delete the files.
That doesn't seem too bad, actually. The realm.c file would have to be able to add an fd to the event list. But everything else would likely be less than 500 LoC. It would likely be best to have a linux-specific code path, and an OSX-specific code path.
Linux can use inotify, and OSX can use kqueue. The master code branch in has some code for kqueue(), see references to VNODE. Tho v3.2.x doesn't have support for anything other than read filters. It might be simples to just ignore OSX :)
The text was updated successfully, but these errors were encountered:
feature enhancementcategory: a new feature (an extension of functionality)v3.2.xmeta: relates to the v3.2.x branchv4.0.xmeta: relates to the v4.0.x branch
Message
It may be useful to add inotify support for dynamic home servers. That way you can just add / delete files in
raddb/home_servers
, and the server will automatically load / delete the files.Example code for inotify is at https://www.thegeekstuff.com/2010/04/inotify-c-program-example/
That doesn't seem too bad, actually. The
realm.c
file would have to be able to add anfd
to the event list. But everything else would likely be less than 500 LoC. It would likely be best to have a linux-specific code path, and an OSX-specific code path.Linux can use inotify, and OSX can use kqueue. The
master
code branch in has some code forkqueue()
, see references toVNODE
. Tho v3.2.x doesn't have support for anything other than read filters. It might be simples to just ignore OSX :)The text was updated successfully, but these errors were encountered: