Skip to content

Commit d0319ec

Browse files
authored
Merge pull request #3274 from thaJeztah/1.2_backport_pidnamespace
[release/1.2 backport] fix killall when use pidnamespace
2 parents ea75cfc + 1014235 commit d0319ec

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

runtime/v1/shim/service.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ func shouldKillAllOnExit(bundlePath string) (bool, error) {
545545

546546
if bundleSpec.Linux != nil {
547547
for _, ns := range bundleSpec.Linux.Namespaces {
548-
if ns.Type == specs.PIDNamespace {
548+
if ns.Type == specs.PIDNamespace && ns.Path == "" {
549549
return false, nil
550550
}
551551
}

0 commit comments

Comments
 (0)