diff options
author | Fabricio Voznika <fvoznika@google.com> | 2020-09-04 11:36:41 -0700 |
---|---|---|
committer | Andrei Vagin <avagin@gmail.com> | 2020-09-09 17:53:10 -0700 |
commit | 3daaddb90c3d72c6244ef379c1a9a651aa971bef (patch) | |
tree | 150370778496dead996956217309582d8942e78f /pkg/tcpip/stack/stack_test.go | |
parent | fb6c6faea2cefb05440845fccce9dcab0779b90d (diff) |
Simplify FD handling for container start/exec
VFS1 and VFS2 host FDs have different dupping behavior,
making error prone to code for both. Change the contract
so that FDs are released as they are used, so the caller
can simple defer a block that closes all remaining files.
This also addresses handling of partial failures.
With this fix, more VFS2 tests can be enabled.
Updates #1487
PiperOrigin-RevId: 330112266
Diffstat (limited to 'pkg/tcpip/stack/stack_test.go')
0 files changed, 0 insertions, 0 deletions