containerd/cio
Hsing-Yu (David) Chen 687a5f51a8 fix: allow attaching to any combination of stdin/stdout/stderr
Before this PR, if a stdin/stdout/stderr stream is nil,
and the corresponding FIFO is not an empty string,
a panic will occur when Read/Write of the nil stream is invoked in io.CopyBuffer.

Signed-off-by: Hsing-Yu (David) Chen <davidhsingyuchen@gmail.com>
2023-08-01 09:56:04 -07:00
..
io_test.go Fix LogURI generation-related tests on Windows. 2022-10-21 15:32:54 +03:00
io_unix_test.go fix: allow attaching to any combination of stdin/stdout/stderr 2023-08-01 09:56:04 -07:00
io_unix.go fix: cio.Cancel() should close the pipes 2023-03-30 18:39:21 -07:00
io_windows_test.go Fix LogURI generation-related tests on Windows. 2022-10-21 15:32:54 +03:00
io_windows.go feat: replace github.com/pkg/errors to errors 2022-01-07 10:27:03 +08:00
io.go fix: allow attaching to any combination of stdin/stdout/stderr 2023-08-01 09:56:04 -07:00