URI: 
       tInclude *_SELF events in default mask - wendy - watch files/directories and run commands on any event
  HTML git clone git://z3bra.org/wendy
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
   DIR commit c992a4aae67e5c852593e0ff87a2463100ac7413
   DIR parent 12e2d648b0f26ae584f1ed4d6277f13e94be3301
  HTML Author: Willy Goiffon <dev@z3bra.org>
       Date:   Wed,  4 Mar 2020 15:03:55 +0100
       
       Include *_SELF events in default mask
       
       Diffstat:
         M wendy.1                             |       2 +-
         M wendy.c                             |       2 +-
       
       2 files changed, 2 insertions(+), 2 deletions(-)
       ---
   DIR diff --git a/wendy.1 b/wendy.1
       t@@ -30,7 +30,7 @@ as provided on the command line. In the case of directories, the path
        triggering the event is concatenated to the directory path.
        .It Fl m Ar mask
        Sets the mask for events you are interested in (see MASKS for more details).
       -default: 970 (IN_CREATE|IN_DELETE|IN_MODIFY|IN_MOVE|IN_CLOSE_WRITE)
       +default: IN_CREATE|IN_DELETE|IN_DELETE_SELF|IN_MODIFY|IN_MOVE|IN_MOVE_SELF|IN_CLOSE_WRITE
        .It Fl w Ar inode
        Specifies the file or directory to watch events in. You can specify multiple
        files by providing the
   DIR diff --git a/wendy.c b/wendy.c
       t@@ -12,7 +12,7 @@
        #include "strlcpy.h"
        
        #define EVSZ (sizeof(struct inotify_event) + NAME_MAX + 1)
       -#define MASK (IN_CREATE|IN_DELETE|IN_MODIFY|IN_MOVE|IN_CLOSE_WRITE)
       +#define MASK (IN_CREATE|IN_DELETE|IN_DELETE_SELF|IN_MODIFY|IN_MOVE|IN_MOVE_SELF|IN_CLOSE_WRITE)
        
        struct watcher {
                int wd;