Merge pull request #2423 from crosbymichael/shim-procs

Set shim max procs via env var
This commit is contained in:
Kenfe-Mickaël Laventure 2018-06-26 10:40:40 -07:00 committed by GitHub
commit 08f7ee9828
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -136,6 +136,7 @@ func newCommand(binary, daemonAddress string, debug bool, config shim.Config, so
// will be mounted by the shim
cmd.SysProcAttr = getSysProcAttr()
cmd.ExtraFiles = append(cmd.ExtraFiles, socket)
cmd.Env = append(os.Environ(), "GOMAXPROCS=2")
if debug {
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr