summaryrefslogtreecommitdiff
path: root/daemonize.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2016-11-01 18:59:34 +0100
committerJakob Unterwurzacher2016-11-01 19:00:45 +0100
commitb527e205e231a7f0d5486b7593ba6b47cf09706d (patch)
tree2e726179e11397b16d151e4b61590723cf991d24 /daemonize.go
parentd6678f73b41cef1f242ddd018c5c0c643b4595c3 (diff)
main: rename "-f" to "-fg"
"-f" looks too much like "--force". The old variant is still accepted for compatability.
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