aboutsummaryrefslogtreecommitdiff
path: root/src/watcher.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/watcher.c')
-rw-r--r--src/watcher.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/watcher.c b/src/watcher.c
index f8761ee..c52e3e6 100644
--- a/src/watcher.c
+++ b/src/watcher.c
@@ -85,5 +85,12 @@ create_watcher (struct spool *sp, void *data)
85 return 0; 85 return 0;
86
87 if (!sp->inotify_enable)
88 {
89 if (debug_level > 1)
90 logmsg (LOG_DEBUG, "disabling inotify support for spool %s", sp->tag);
91 return 0;
92 }
86 93
87 if (debug_level > 1) 94 if (debug_level > 1)
88 logmsg (LOG_DEBUG, "creating watcher %s", path); 95 logmsg (LOG_DEBUG, "spool %s: creating watcher %s", sp->tag, path);
89 dwp = malloc (sizeof(*dwp)); 96 dwp = malloc (sizeof(*dwp));
@@ -115,2 +122,9 @@ watcher_init ()
115 int ifd, rc; 122 int ifd, rc;
123
124 if (!inotify_enable)
125 {
126 if (debug_level > 1)
127 logmsg (LOG_DEBUG, "disabling inotify support");
128 return -1;
129 }
116 130

Return to:

Send suggestions and report system problems to the System administrator.