commit 61d2234743e192bbee1d05c1d231427c3338d2af (tree)
parent b6ed833083e5174d7b616de7c9205596d1aa0a9f
Author: Andrew Kelley <andrew@ziglang.org>
Date: Wed, 10 Jul 2024 00:42:16 -0700
std.Build.Watch: add ONDIR to fanotify event mask
This makes mkdir/rmdir events show up.
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/lib/std/Build/Watch.zig b/lib/std/Build/Watch.zig
@@ -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 = .{