Skip to content

Commit

Permalink
Set shim max procs via env var
Browse files Browse the repository at this point in the history
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 <crosbymichael@gmail.com>
(cherry picked from commit 68e144c)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
  • Loading branch information
crosbymichael authored and thaJeztah committed Nov 12, 2018
1 parent a7dff7e commit 069260a
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 069260a

Please sign in to comment.