summaryrefslogtreecommitdiffstats
path: root/fikenauth/lock_other.go
diff options
context:
space:
mode:
Diffstat (limited to 'fikenauth/lock_other.go')
-rw-r--r--fikenauth/lock_other.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/fikenauth/lock_other.go b/fikenauth/lock_other.go
new file mode 100644
index 0000000..b6c6075
--- /dev/null
+++ b/fikenauth/lock_other.go
@@ -0,0 +1,7 @@
+//go:build !unix
+
+package fikenauth
+
+// lock is a no-op where flock does not exist; two programs renewing one grant
+// at the same moment can then still log each other out.
+func (s *Store) lock() (unlock func(), err error) { return func() {}, nil }