Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(930)

Unified Diff: mmutex/cmd/mmutex/main.go

Issue 2982763002: Make mmutex actually acquire and release file locks (Closed)
Patch Set: Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mmutex/cmd/mmutex/exclusive_test.go ('k') | mmutex/lib/blocker.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mmutex/cmd/mmutex/main.go
diff --git a/mmutex/cmd/mmutex/main.go b/mmutex/cmd/mmutex/main.go
index 69949936e1006f6cdb3937f279b3ebccc6bf0693..bb89955399ad185ce734d671a47fcb5ea93dfe44 100644
--- a/mmutex/cmd/mmutex/main.go
+++ b/mmutex/cmd/mmutex/main.go
@@ -16,12 +16,13 @@ package main
import (
"os"
+ "path"
"github.com/maruel/subcommands"
)
-// TODO(charliea): Compute this path from $MMUTEX_LOCK_DIR rather than using a constant.
-const lockFilePath = "/tmp/lock"
+// TODO(charliea): Compute this path from $MMUTEX_LOCK_DIR rather than making it fixed.
+var LockFilePath = path.Join(os.TempDir(), "mmutex.lock")
var application = &subcommands.DefaultApplication{
Name: "mmutex",
« no previous file with comments | « mmutex/cmd/mmutex/exclusive_test.go ('k') | mmutex/lib/blocker.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698