std.Build.Watch: add ONDIR to fanotify event mask

This makes mkdir/rmdir events show up.
This commit is contained in:
Andrew Kelley 2024-07-10 00:42:16 -07:00
parent b6ed833083
commit 61d2234743

View File

@ -19,6 +19,7 @@ pub const fan_mask: std.os.linux.fanotify.MarkMask = .{
.MOVED_FROM = true,
.MOVED_TO = true,
.MOVE_SELF = true,
.ONDIR = true,
};
pub const init: Watch = .{