Skip to content

Commit 50e5e15

Browse files
authored
Merge pull request #4065 from thaJeztah/1.3_backport_namespace_path
[release/1.3 backport] fix killall when use pidnamespace
2 parents 449e926 + c090014 commit 50e5e15

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

runtime/v2/runc/v1/service.go

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

624624
if bundleSpec.Linux != nil {
625625
for _, ns := range bundleSpec.Linux.Namespaces {
626-
if ns.Type == specs.PIDNamespace {
626+
if ns.Type == specs.PIDNamespace && ns.Path == "" {
627627
return false, nil
628628
}
629629
}

0 commit comments

Comments
 (0)