summaryrefslogtreecommitdiff
path: root/daemonize.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2015-10-11 18:51:56 +0200
committerJakob Unterwurzacher2015-10-11 18:51:56 +0200
commit242fcd0736313eaec17e3fa10f5f9a34b54164fb (patch)
treea02184a2865d760ebf6d3ded8e65ed55fbdd3484 /daemonize.go
parentb00fc379c4d18ca848b5ded70549120755a509c4 (diff)
Run gofmtv0.2
Diffstat (limited to 'daemonize.go')
-rw-r--r--daemonize.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/daemonize.go b/daemonize.go
index 87faf33..e93c264 100644
--- a/daemonize.go
+++ b/daemonize.go
@@ -1,11 +1,11 @@
package main
import (
- "syscall"
- "os/exec"
- "os"
"fmt"
+ "os"
+ "os/exec"
"os/signal"
+ "syscall"
)
// The child sends us USR1 if the mount was successful
@@ -36,8 +36,8 @@ func daemonize() {
if err != nil {
if exiterr, ok := err.(*exec.ExitError); ok {
if waitstat, ok := exiterr.Sys().(syscall.WaitStatus); ok {
- os.Exit(waitstat.ExitStatus())
- }
+ os.Exit(waitstat.ExitStatus())
+ }
}
fmt.Printf("daemonize: wait returned an unknown error: %v\n", err)
os.Exit(1)