mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
merge #4923 into opencontainers/runc:release-1.4
Joshua Rogers (1): fix(seccompagent): close received FDs, not loop index LGTMs: lifubang cyphar
This commit is contained in:
@@ -27,8 +27,8 @@ var (
|
||||
)
|
||||
|
||||
func closeStateFds(recvFds []int) {
|
||||
for i := range recvFds {
|
||||
unix.Close(i)
|
||||
for _, fd := range recvFds {
|
||||
_ = unix.Close(fd)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user