🉑 revert GOMAXPROCS in master process

pull/821/head
kiyon 2020-09-22 22:48:51 +08:00
parent 17959c0382
commit f6f2f769c1
1 changed files with 1 additions and 2 deletions

View File

@ -61,8 +61,7 @@ func (app *App) prefork(addr string, tlsConfig *tls.Config) (err error) {
err error
}
// create variables
// set 'max' to the previous value of GOMAXPROCS and set GOMAXPROCS to 1 for the master process;
var max = runtime.GOMAXPROCS(1)
var max = runtime.GOMAXPROCS(0)
var childs = make(map[int]*exec.Cmd)
var channel = make(chan child, max)