Skip to content

Commit 764afa0

Browse files
committed
Include extension for shim binary format on Windows
Use full name including extension for shim binary format on Windows in order to match any stat path faster without a fallback. Signed-off-by: Justin Terry (VM) <[email protected]>
1 parent 4259f63 commit 764afa0

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

runtime/v2/shim/util.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ import (
3131
"github.com/pkg/errors"
3232
)
3333

34-
const shimBinaryFormat = "containerd-shim-%s-%s"
35-
3634
var runtimePaths sync.Map
3735

3836
// Command returns the shim command with the provided args and configuration

runtime/v2/shim/util_unix.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ import (
3131
"github.com/pkg/errors"
3232
)
3333

34+
const shimBinaryFormat = "containerd-shim-%s-%s"
35+
3436
func getSysProcAttr() *syscall.SysProcAttr {
3537
return &syscall.SysProcAttr{
3638
Setpgid: true,

runtime/v2/shim/util_windows.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ import (
2929
"github.com/pkg/errors"
3030
)
3131

32+
const shimBinaryFormat = "containerd-shim-%s-%s.exe"
33+
3234
func getSysProcAttr() *syscall.SysProcAttr {
3335
return nil
3436
}

0 commit comments

Comments
 (0)