aboutsummaryrefslogtreecommitdiff
path: root/daemonize.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2016-06-15 23:30:44 +0200
committerJakob Unterwurzacher2016-06-15 23:30:44 +0200
commit6c3f97399a01a2d8480b39978209099335efbf7d (patch)
tree097b34a37b5f62ebcfd7294d096b16f436c180f9 /daemonize.go
parent09e88f31d1b4308bf82c7f4eb0dd83855ad67ffc (diff)
Rename internal "toggledlog" package to "tlog"
tlog is used heavily everywhere and deserves a shorter name. Renamed using sed magic, without any manual rework: find * -type f -exec sed -i 's/toggledlog/tlog/g' {} +
Diffstat (limited to 'daemonize.go')
-rw-r--r--daemonize.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/daemonize.go b/daemonize.go
index 5d570c6..56423f5 100644
--- a/daemonize.go
+++ b/daemonize.go
@@ -7,7 +7,7 @@ import (
"os/signal"
"syscall"
- "github.com/rfjakob/gocryptfs/internal/toggledlog"
+ "github.com/rfjakob/gocryptfs/internal/tlog"
)
// The child sends us USR1 if the mount was successful
@@ -32,7 +32,7 @@ func forkChild() {
c.Stdin = os.Stdin
err := c.Start()
if err != nil {
- toggledlog.Fatal.Printf("forkChild: starting %s failed: %v\n", name, err)
+ tlog.Fatal.Printf("forkChild: starting %s failed: %v\n", name, err)
os.Exit(1)
}
err = c.Wait()
@@ -42,7 +42,7 @@ func forkChild() {
os.Exit(waitstat.ExitStatus())
}
}
- toggledlog.Fatal.Printf("forkChild: wait returned an unknown error: %v\n", err)
+ tlog.Fatal.Printf("forkChild: wait returned an unknown error: %v\n", err)
os.Exit(1)
}
// The child exited with 0 - let's do the same.