podman/cmd
Nalin Dahyabhai c46884aa93 podman events: check for an error after we finish reading events
The function that's handing us events will return an error after closing
the channel over which it's sending events, and its caller (in its own
goroutine) will then send that error over another channel.

The logic that started the goroutine is likely to notice that the events
channel is closed before noticing that the error channel has a result
for it to read, so any error that would have been communicated would be
lost.

When we finish reading events, check if the reader returned an error
before telling our caller that there was no error.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2024-05-14 13:18:51 -04:00
..
podman podman events: check for an error after we finish reading events 2024-05-14 13:18:51 -04:00
podman-mac-helper cmd: use fileutils.(Le|E)xists 2024-04-19 09:52:14 +02:00
podman-wslkerninst Fix Lint on Windows and enable the job 2024-02-20 08:06:18 -05:00
quadlet Bump Go module to v5 2024-02-08 09:35:39 -05:00
rootlessport update github.com/rootless-containers/rootlesskit to v2 2024-04-05 12:25:02 +02:00
winpath Fix Lint on Windows and enable the job 2024-02-20 08:06:18 -05:00