Skip to content

Commit fa5f744

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

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
@@ -546,7 +546,7 @@ func shouldKillAllOnExit(bundlePath string) (bool, error) {
546546

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

0 commit comments

Comments
 (0)