summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.go1
-rw-r--r--sendusr1.go4
2 files changed, 3 insertions, 2 deletions
diff --git a/main.go b/main.go
index f1fd58b..6a1ac3e 100644
--- a/main.go
+++ b/main.go
@@ -33,6 +33,7 @@ const (
ERREXIT_MOUNTPOINT = 10
)
+// GitVersion will be set by the build script "build.bash"
var GitVersion = "[version not set - please compile using ./build.bash]"
func initDir(dirArg string) {
diff --git a/sendusr1.go b/sendusr1.go
index eab7d11..c5dbb7c 100644
--- a/sendusr1.go
+++ b/sendusr1.go
@@ -9,7 +9,7 @@ import (
)
const (
- WRAPPER_CONTAINS = "gocryptfs\000"
+ wrapperContains = "gocryptfs\000"
)
// Send USR1 to the parent process. This notifies it that the
@@ -24,7 +24,7 @@ func sendUsr1() {
fmt.Printf("sendUsr1: ReadFile: %v\n", err)
return
}
- if bytes.Contains(cmdline, []byte(WRAPPER_CONTAINS)) {
+ if bytes.Contains(cmdline, []byte(wrapperContains)) {
p, err := os.FindProcess(ppid)
if err != nil {
fmt.Printf("sendUsr1: FindProcess: %v\n", err)