Skip to content

Commit c090014

Browse files
tedyuthaJeztah
authored andcommitted
fix killall when use pidnamespace
Signed-off-by: Ted Yu <[email protected]> (cherry picked from commit 4105135) Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent 449e926 commit c090014

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)