podman/pkg/api/handlers/compat
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
..
auth.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
changes.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
containers.go Add support for updating restart policy 2024-04-17 08:23:51 -04:00
containers_archive.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
containers_attach.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
containers_create.go pkg/api: use fileutils.(Le|E)xists 2024-04-19 09:52:14 +02:00
containers_export.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
containers_logs.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
containers_pause.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
containers_prune.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
containers_restart.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
containers_start.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
containers_stats_freebsd.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
containers_stats_linux.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
containers_stop.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
containers_top.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
containers_unpause.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
events.go `podman events`: check for an error after we finish reading events 2024-05-14 13:18:51 -04:00
exec.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
images.go Add os, arch, and ismanifest to libpod image list 2024-04-11 08:46:37 -05:00
images_build.go pkg/api: use fileutils.(Le|E)xists 2024-04-19 09:52:14 +02:00
images_history.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
images_prune.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
images_push.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
images_remove.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
images_save.go golangci-lint: enable nolintlint 2022-06-14 16:29:42 +02:00
images_search.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
images_tag.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
info.go Don't panic if a runtime was configured without paths 2024-05-08 12:44:38 +00:00
networks.go fix "concurrent map writes" in network ls compat endpoint 2024-04-10 18:41:20 +02:00
ping.go /_ping handler: return OSType http header 2023-08-28 22:28:16 +08:00
resize.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
secrets.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
system.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
types.go stats compat API: return "id" lowercase 2023-03-22 14:36:35 +01:00
unsupported.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
version.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
volumes.go Bump Go module to v5 2024-02-08 09:35:39 -05:00