Skip to content

Commit 8722966

Browse files
committed
fix shouldKillAllOnExit check for v2
Signed-off-by: Lifubang <[email protected]>
1 parent fa5f744 commit 8722966

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

runtime/v2/runc/v2/service.go

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

662662
if bundleSpec.Linux != nil {
663663
for _, ns := range bundleSpec.Linux.Namespaces {
664-
if ns.Type == specs.PIDNamespace {
664+
if ns.Type == specs.PIDNamespace && ns.Path == "" {
665665
return false, nil
666666
}
667667
}

0 commit comments

Comments
 (0)