| 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",
|
|
|