diff options
author | Nalin Dahyabhai <nalin@redhat.com> | 2021-03-15 12:03:22 -0400 |
---|---|---|
committer | Nalin Dahyabhai <nalin@redhat.com> | 2021-03-16 14:14:32 -0400 |
commit | e8918ff10bafcdba7397c257fe5402a820698ee9 (patch) | |
tree | 743421febc436cec50c0c6d9c80a561b4060507a /vendor/k8s.io/api/core | |
parent | 604459b404ed190f51e8b368c619323317078232 (diff) | |
download | podman-e8918ff10bafcdba7397c257fe5402a820698ee9.tar.gz podman-e8918ff10bafcdba7397c257fe5402a820698ee9.tar.bz2 podman-e8918ff10bafcdba7397c257fe5402a820698ee9.zip |
pkg/bindings/images.Build(): fix a race condition in error reporting
In nTar(), don't return the error value when the goroutine that's
populating the error value can continue running long after nTar()
returns. Instead, wrap the Close() method of the pipe that we're
returning in a function that collects those errors, along with any error
we get from closing the pipe, and returns them from Close() wrapper.
In Build(), if the Close() method returns an error, at least log it.
Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
Diffstat (limited to 'vendor/k8s.io/api/core')
0 files changed, 0 insertions, 0 deletions