Skip to content

Commit cc1c45a

Browse files
authored
Merge pull request #2782 from thaJeztah/1.1_backport_shim_procs
[release/1.1 backport] Set shim max procs via env var
2 parents 900f0d4 + 069260a commit cc1c45a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

linux/shim/client/client.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ func newCommand(binary, daemonAddress string, debug bool, config shim.Config, so
136136
// will be mounted by the shim
137137
cmd.SysProcAttr = getSysProcAttr()
138138
cmd.ExtraFiles = append(cmd.ExtraFiles, socket)
139+
cmd.Env = append(os.Environ(), "GOMAXPROCS=2")
139140
if debug {
140141
cmd.Stdout = os.Stdout
141142
cmd.Stderr = os.Stderr

0 commit comments

Comments
 (0)