moby/pkg/ioutils
Paweł Gronowski c01bbbddeb
pkg/ioutils: Make subsequent Close attempts noop
Turn subsequent `Close` calls into a no-op and produce a warning with an
optional stack trace (if debug mode is enabled).

Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
(cherry picked from commit 585d74bad1)
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
2024-01-25 15:15:01 +01:00
..
buffer.go Add canonical import comment 2018-02-05 16:51:57 -05:00
buffer_test.go pkg/ioutils: some cleanups in tests 2023-07-19 19:17:22 +02:00
bytespipe.go fix blockThreshold full bug 2023-01-17 12:56:43 +08:00
bytespipe_test.go pkg/ioutils: some cleanups in tests 2023-07-19 19:17:22 +02:00
fswriters.go refactor: move from io/ioutil to io and os package 2021-08-27 14:56:57 +08:00
fswriters_test.go pkg/ioutils: some cleanups in tests 2023-07-19 19:17:22 +02:00
readers.go pkg/ioutils: Make subsequent Close attempts noop 2024-01-25 15:15:01 +01:00
readers_test.go pkg/ioutils: some cleanups in tests 2023-07-19 19:17:22 +02:00
writeflusher.go Add canonical import comment 2018-02-05 16:51:57 -05:00
writers.go pkg/ioutils: Make subsequent Close attempts noop 2024-01-25 15:15:01 +01:00
writers_test.go pkg/ioutils: some cleanups in tests 2023-07-19 19:17:22 +02:00