tAdded 3 more events to list_events - wendy - watch files/directories and run commands on any event
 (HTM) git clone git://z3bra.org/wendy
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 9694ba357135dfabe794d4e47c0e676ee9fbbdf0
 (DIR) parent e5ce4d46a667ade7fc70dbf71579f7c4029943c7
 (HTM) Author: z3bra <willy@mailoo.org>
       Date:   Sun, 16 Feb 2014 22:11:56 +0100
       
       Added 3 more events to list_events
       
       Diffstat:
         M wendy.c                             |      10 +++++++---
       
       1 file changed, 7 insertions(+), 3 deletions(-)
       ---
 (DIR) diff --git a/wendy.c b/wendy.c
       t@@ -64,7 +64,9 @@ list_events()
                    "IN_CREATE ........ %u\n"
                    "IN_DELETE ........ %u\n"
                    "IN_DELETE_SELF ... %u\n"
       -            "IN_MOVE_SELF ..... %u\n",
       +            "IN_MOVE_SELF ..... %u\n"
       +            "IN_ALL_EVENTS .... %u\n"
       +            "IN_UNMOUNT ....... %u\n",
                    IN_ACCESS,
                    IN_MODIFY,
                    IN_ATTRIB,
       t@@ -76,7 +78,9 @@ list_events()
                    IN_CREATE,
                    IN_DELETE,
                    IN_DELETE_SELF,
       -            IN_MOVE_SELF
       +            IN_MOVE_SELF,
       +            IN_ALL_EVENTS,
       +            IN_UNMOUNT
                   );
            exit(0);
        }
       t@@ -160,7 +164,7 @@ add_watch:
                    ev = (struct inotify_event *) &buf[i];
        
                    if (ev->mask & IN_IGNORED) {
       -                printf("File watch removed. Recreating inotify watch\n");
       +                printf("watch removed, attemting to create another\n");
                        goto add_watch;
                    }