summaryrefslogtreecommitdiff
path: root/docs/source/markdown
diff options
context:
space:
mode:
authorNalin Dahyabhai <nalin@redhat.com>2021-03-15 12:03:22 -0400
committerNalin Dahyabhai <nalin@redhat.com>2021-03-16 14:14:32 -0400
commite8918ff10bafcdba7397c257fe5402a820698ee9 (patch)
tree743421febc436cec50c0c6d9c80a561b4060507a /docs/source/markdown
parent604459b404ed190f51e8b368c619323317078232 (diff)
downloadpodman-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 'docs/source/markdown')
0 files changed, 0 insertions, 0 deletions