1
0
mirror of https://github.com/beego/bee.git synced 2024-11-22 05:00:54 +00:00

Merge branch 'master' of github.com:astaxie/bee

This commit is contained in:
Unknown 2013-08-09 18:01:22 +08:00
commit 1991a21b03

6
run.go
View File

@ -67,6 +67,7 @@ var conf struct {
}
func runApp(cmd *Command, args []string) {
exit := make(chan bool)
if len(args) != 1 {
fmt.Println("[ERRO] Argument [appname] is missing")
os.Exit(2)
@ -92,7 +93,10 @@ func runApp(cmd *Command, args []string) {
appname = args[0]
Autobuild()
for {
runtime.Gosched()
select {
case <-exit:
runtime.Goexit()
}
}
}