Skip to content

Commit 268ae7f

Browse files
authored
Merge pull request containerd#10562 from zhsj/pidfd
Fix TestNewBinaryIOCleanup on Go 1.23 and Linux 5.4
2 parents ee86aba + 8ef73c5 commit 268ae7f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmd/containerd-shim-runc-v2/process/io_test.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@ func descriptorCount(t *testing.T) int {
8888
continue
8989
}
9090

91-
if strings.HasPrefix(sym, "pidfd:") {
91+
if strings.Contains(sym, "pidfd") {
92+
// Either pidfd:[70517] or anon_inode:[pidfd] (on Linux 5.4)
9293
files = append(files[:i], files[i+1:]...)
9394
}
9495
}

0 commit comments

Comments
 (0)