diff options
author | Unknwon <u@gogs.io> | 2015-08-19 00:34:11 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-08-19 00:34:11 +0800 |
commit | 81b8427438d4d37d38a46d0fec4c22aee60f91fa (patch) | |
tree | 19138f3cf6bdaa2d4bde0dfb3355df10703174cb /cmd | |
parent | 6fdc881bd4ffb0a97a9a3f6ec65182575c5b0bde (diff) | |
download | gitea-81b8427438d4d37d38a46d0fec4c22aee60f91fa.tar.gz gitea-81b8427438d4d37d38a46d0fec4c22aee60f91fa.zip |
new UI on admin/monitor
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/web.go | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/cmd/web.go b/cmd/web.go index 84def2a481..c441e91966 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -12,7 +12,6 @@ import ( "net/http" "net/http/fcgi" "os" - "os/signal" "path" "strings" @@ -531,16 +530,6 @@ func runWeb(ctx *cli.Context) { // Not found handler. m.NotFound(routers.NotFound) - // Detect kill signal. - c := make(chan os.Signal, 1) - signal.Notify(c, os.Interrupt) - go func() { - for _ = range c { - fmt.Println("Kill signal detected, exiting now...") - os.Exit(0) - } - }() - // Flag for port number in case first time run conflict. if ctx.IsSet("port") { setting.AppUrl = strings.Replace(setting.AppUrl, setting.HttpPort, ctx.String("port"), 1) |