Skip to content

Commit 4105135

Browse files
committed
fix killall when use pidnamespace
Signed-off-by: Ted Yu <[email protected]>
1 parent 9b4967b commit 4105135

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

635635
if bundleSpec.Linux != nil {
636636
for _, ns := range bundleSpec.Linux.Namespaces {
637-
if ns.Type == specs.PIDNamespace {
637+
if ns.Type == specs.PIDNamespace && ns.Path == "" {
638638
return false, nil
639639
}
640640
}

0 commit comments

Comments
 (0)