From 8ca93de58a56c12444bc7bd6046e7ad837e80203 Mon Sep 17 00:00:00 2001 From: Philippe Pittoli Date: Sat, 3 Jun 2023 03:27:56 +0200 Subject: [PATCH] API change for FS (.lock = .exclusive). --- src/context.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/context.zig b/src/context.zig index 6951f5f..e99b6a1 100644 --- a/src/context.zig +++ b/src/context.zig @@ -245,7 +245,7 @@ pub const Context = struct { // While the program is running, the lock is enabled. // Once the program stops (even if it crashes), the lock is then disabled. // Quit if the lock is still active. - const lock_opts = .{ .lock = .Exclusive, .lock_nonblocking = true }; + const lock_opts = .{ .lock = .exclusive, .lock_nonblocking = true }; _ = std.fs.createFileAbsolute(lock, lock_opts) catch |err| { log.err("cannot init server at {s}, lock {s} is causing a problem: {any}", .{ path, lock, err }); log.err("you may have lauched the service twice.", .{});