Skip to content

Commit

Permalink
Merge pull request #2782 from thaJeztah/1.1_backport_shim_procs
Browse files Browse the repository at this point in the history
[release/1.1 backport] Set shim max procs via env var
  • Loading branch information
estesp committed Nov 12, 2018
2 parents 900f0d4 + 069260a commit cc1c45a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions linux/shim/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cc1c45a

Please sign in to comment.