aboutsummaryrefslogtreecommitdiff
path: root/src/direvent.h
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2014-08-31 17:27:45 +0300
committerSergey Poznyakoff <gray@gnu.org>2014-08-31 17:27:45 +0300
commit92eeafbe6b3c68a51b11dbe773d909982acfb1b9 (patch)
treecc25173ed06fa2a783ac090fa77b77f062c265ac /src/direvent.h
parent0e2589f4c5a4cca6ee7713664544d5f5fb0e1936 (diff)
downloaddirevent-92eeafbe6b3c68a51b11dbe773d909982acfb1b9.tar.gz
direvent-92eeafbe6b3c68a51b11dbe773d909982acfb1b9.tar.bz2
Accept multpile watchers for the same path
* src/direvent.h (dirwatcher)<handler_tail>: New member. * src/config.c (eventconf_flush): Use handler_tail to update the handler list. Remove erroneous check.
Diffstat (limited to 'src/direvent.h')
-rw-r--r--src/direvent.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/direvent.h b/src/direvent.h
index 069d3d8..07dfd0b 100644
--- a/src/direvent.h
+++ b/src/direvent.h
@@ -89,9 +89,13 @@ struct dirwatcher {
struct dirwatcher *parent; /* Points to the parent watcher.
NULL for top-level watchers */
char *dirname; /* Pathname being watched */
- struct handler *handler_list; /* Handlers */
- int depth;
- char *split_p;
+ struct handler *handler_list; /* List of handlers */
+ struct handler *handler_tail; /* Tail of the handler list */
+ int depth; /* Recursion depth */
+ char *split_p; /* Points to the deleted directory
+ separator in dirname (see
+ split_pathname,
+ unsplit_pathname */
#if USE_IFACE == IFACE_KQUEUE
mode_t file_mode;
time_t file_ctime;

Return to:

Send suggestions and report system problems to the System administrator.