diff --git a/main.go b/main.go
index <HASH>..<HASH> 100644
--- a/main.go
+++ b/main.go
@@ -36,6 +36,7 @@ func (d *Daemon) RunClient() (err error) {
 }
 
 func (d *Daemon) Run() (err error) {
+	G.Daemon = true
 	if err = d.ConfigRpcServer(); err != nil {
 		return
 	}
say we're a daemon