summaryrefslogtreecommitdiff
path: root/sendusr1.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2015-11-02 22:50:53 +0100
committerJakob Unterwurzacher2015-11-02 22:51:12 +0100
commita3244070829202ba8e1d52580d0ce7f76b16fe6c (patch)
tree36b0726a3caceea88cd75d22281539c682ed589e /sendusr1.go
parent389977eec426559f4fbc2d097b01bcc68f16145a (diff)
Fix three "golint" nitpicks
Diffstat (limited to 'sendusr1.go')
-rw-r--r--sendusr1.go4
1 files changed, 2 insertions, 2 deletions
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)