Skip to content

Commit 069260a

Browse files
crosbymichaelthaJeztah
authored andcommitted
Set shim max procs via env var
This sets the shim's max procs to 2, like we already have hard coded in the shim, with the env var so that it is set at go runtime boot. Signed-off-by: Michael Crosby <[email protected]> (cherry picked from commit 68e144c) Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent a7dff7e commit 069260a

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)