summaryrefslogtreecommitdiff
path: root/daemonize.go
diff options
context:
space:
mode:
Diffstat (limited to 'daemonize.go')
-rw-r--r--daemonize.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/daemonize.go b/daemonize.go
index 5bfed7d..fa5b6e1 100644
--- a/daemonize.go
+++ b/daemonize.go
@@ -24,7 +24,7 @@ func exitOnUsr1() {
func forkChild() int {
go exitOnUsr1()
name := os.Args[0]
- newArgs := []string{"-f", fmt.Sprintf("-notifypid=%d", os.Getpid())}
+ newArgs := []string{"-fg", fmt.Sprintf("-notifypid=%d", os.Getpid())}
newArgs = append(newArgs, os.Args[1:]...)
c := exec.Command(name, newArgs...)
c.Stdout = os.Stdout