X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=inn-innduct.git;a=blobdiff_plain;f=backends%2Finnduct.c;h=0240e4ee81dc3920d965a924bfabb559645bfcb4;hp=5997b579f603ea8fae325bbc91d1e630a46e189b;hb=cde028ff3ae4aff41f1a23d360520ee69fa14d5d;hpb=b8cc43ae9ccf98b3c8f747e3e32cfabb09aae9db diff --git a/backends/innduct.c b/backends/innduct.c index 5997b57..0240e4e 100644 --- a/backends/innduct.c +++ b/backends/innduct.c @@ -1991,10 +1991,10 @@ static ssize_t tailing_try_read(struct oop_readable *rable, void *buffer, /*---------- filemon implemented with inotify ----------*/ -#if defined(HAVE_INOTIFY) && !defined(HAVE_FILEMON) +#if defined(HAVE_SYS_INOTIFY_H) && !defined(HAVE_FILEMON) #define HAVE_FILEMON -#include +#include static int filemon_inotify_fd; static int filemon_inotify_wdmax; @@ -2057,7 +2057,7 @@ static void *filemon_inotify_readable(oop_source *lp, int fd, static int filemon_method_init(void) { filemon_inotify_fd= inotify_init(); if (filemon_inotify_fd<0) { - syswarn("could not initialise inotify: inotify_init failed"); + syswarn("filemon/inotify: inotify_init failed"); return 0; } set nonblock; @@ -2075,7 +2075,10 @@ static int filemon_method_init(void) { struct Filemon_Perfile { int dummy; }; -static int filemon_method_init(void) { return 0; } +static int filemon_method_init(void) { + warn("filemon/dummy: no filemon method compiled in"); + return 0; +} static void filemon_method_startfile(InputFile *ipf, Filemon_Perfile *pf) { } static void filemon_method_stopfile(InputFile *ipf, Filemon_Perfile *pf) { } @@ -3262,7 +3265,7 @@ int main(int argc, char **argv) { control_init(); if (!filemon_method_init()) { - warn("no file monitoring available, polling"); + warn("filemon: no file monitoring available, polling"); every(5,0,filepoll); }