mirror of
https://github.com/golang/go
synced 2024-11-19 02:04:42 -07:00
f45eb9ff3c
The current implementation allows multiple calls `Close` and `CloseWithError` in every side of the pipe, as a result, the original error can be overwritten.
This CL fixes this behavior adding an error existence check on `atomicError` type
and keeping the first error still available.
Fixes #24283
Change-Id: Iefe8f758aeb775309424365f8177511062514150
GitHub-Last-Rev:
|
||
---|---|---|
.. | ||
ioutil | ||
example_test.go | ||
io_test.go | ||
io.go | ||
multi_test.go | ||
multi.go | ||
pipe_test.go | ||
pipe.go |