wendy

inotify based node watcher
git clone git://git.2f30.org/wendy.git
Log | Files | Refs | README | LICENSE

commit c992a4aae67e5c852593e0ff87a2463100ac7413
parent 12e2d648b0f26ae584f1ed4d6277f13e94be3301
Author: Willy Goiffon <dev@z3bra.org>
Date:   Wed,  4 Mar 2020 15:03:55 +0100

Include *_SELF events in default mask

Diffstat:
Mwendy.1 | 2+-
Mwendy.c | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/wendy.1 b/wendy.1 @@ -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 diff --git a/wendy.c b/wendy.c @@ -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;