diff options
author | jmmv <jmmv@pkgsrc.org> | 2004-10-17 19:20:53 +0000 |
---|---|---|
committer | jmmv <jmmv@pkgsrc.org> | 2004-10-17 19:20:53 +0000 |
commit | 665d71f19032aa7c6bdadab838c5c58b56e9aa3d (patch) | |
tree | 51577a67ccbf14a8aa45f196c661bc17568591bf /sysutils/fam/patches | |
parent | 695bd01a066f0b832a84a92640e96fb4b4dd58f5 (diff) | |
download | pkgsrc-665d71f19032aa7c6bdadab838c5c58b56e9aa3d.tar.gz |
Add kqueue support. This way, famd can be notified of changes to files and
directories in "real time", without having to periodically poll(2) for them
after several seconds. This improves the responsiveness of applications
using famd (specially GNOME) when changes to files occur from the "outside"
(they are notified from changes immediately), or even from the application
itself (for example, have you ever tried to rename several files from
Nautilus? just a PITA).
To enable kqueue, you have to pass the 'kqueue' option to the package.
I'm not enabling it by default because it needs testing (but it should be
enabled in a future). Furthermore, I'd like to send these patches to the
FAM developers for comments too. And a review from somebody knowing kqueue
could be good! (this is the first time I use the kqueue interface, so I'm
not sure if everything is right).
A description on how this works can be found in the files/IMonKQueue.c++
file. Note that, due to FAM's design, the easiest way to do this change
is to "emulate" imon functionality.
While here, add an rc.d script for famd, in case the user prefers to run
it at system startup instead of from inetd (I created it while developing
the kqueue functionality, so it's a good moment to add it). Adjust the
MESSAGE accordingly.
Bump PKGREVISION to 4.
Diffstat (limited to 'sysutils/fam/patches')
-rw-r--r-- | sysutils/fam/patches/patch-ag | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/sysutils/fam/patches/patch-ag b/sysutils/fam/patches/patch-ag index 3d8fce2cc61..01224f0acb9 100644 --- a/sysutils/fam/patches/patch-ag +++ b/sysutils/fam/patches/patch-ag @@ -1,6 +1,6 @@ -$NetBSD: patch-ag,v 1.4 2004/03/28 22:00:05 minskim Exp $ +$NetBSD: patch-ag,v 1.5 2004/10/17 19:20:53 jmmv Exp $ ---- src/IMon.c++.orig 2003-01-18 08:18:12.000000000 -0600 +--- src/IMon.c++.orig 2003-01-18 15:18:12.000000000 +0100 +++ src/IMon.c++ @@ -25,6 +25,7 @@ #include <assert.h> @@ -10,8 +10,12 @@ $NetBSD: patch-ag,v 1.4 2004/03/28 22:00:05 minskim Exp $ #if HAVE_IMON #ifdef __sgi -@@ -34,7 +35,9 @@ +@@ -32,9 +33,13 @@ + #else + #include <linux/imon.h> #endif ++#else // HAVE_IMON ++#include "imon-compat.h" #endif +#if HAVE_SYS_SYSMACROS_H |