Skip to content

Commit 1014235

Browse files
lifubangthaJeztah
authored andcommitted
fix shouldKillAllOnExit check
Signed-off-by: Lifubang <[email protected]> (cherry picked from commit fa5f744) Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent ea75cfc commit 1014235

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)