spiegel_podman/pkg/bindings/containers
Paul Holzinger 2cd206d0fc libpod: fix race when closing STDIN
There is a race where `conn.Close()` was called before `conn.CloseWrite()`.
In this case `CloseWrite` will fail and an useless error is printed. To
fix this we move the the `CloseWrite()` call to the same goroutine to
remove the race. This ensures that `CloseWrite()` is called before
`Close()` and never afterwards.
Also fixed podman-remote run where the STDIN was never was closed.
This is causing flakes in CI testing.

[NO TESTS NEEDED]

Fixes #11856

Signed-off-by: Paul Holzinger <pholzing@redhat.com>

<MH: Fixed cherry-pick conflicts>

Signed-off-by: Matthew Heon <matthew.heon@pm.me>
2021-10-19 14:08:58 -04:00
..
archive.go Fix file descriptor leaks and add test 2021-08-24 16:36:10 -07:00
attach.go libpod: fix race when closing STDIN 2021-10-19 14:08:58 -04:00
checkpoint.go Fix file descriptor leaks and add test 2021-08-24 16:36:10 -07:00
commit.go Fix file descriptor leaks and add test 2021-08-24 16:36:10 -07:00
containers.go Fix file descriptor leaks and add test 2021-08-24 16:36:10 -07:00
create.go Fix file descriptor leaks and add test 2021-08-24 16:36:10 -07:00
diff.go Fix file descriptor leaks and add test 2021-08-24 16:36:10 -07:00
exec.go Fix file descriptor leaks and add test 2021-08-24 16:36:10 -07:00
healthcheck.go Fix file descriptor leaks and add test 2021-08-24 16:36:10 -07:00
logs.go Fix file descriptor leaks and add test 2021-08-24 16:36:10 -07:00
mount.go Fix file descriptor leaks and add test 2021-08-24 16:36:10 -07:00
rename.go Fix file descriptor leaks and add test 2021-08-24 16:36:10 -07:00
types.go Enhance bindings for IDE hints 2021-09-16 09:42:14 -04:00
types_attach_options.go Enhance bindings for IDE hints 2021-09-16 09:42:14 -04:00
types_checkpoint_options.go Enhance bindings for IDE hints 2021-09-16 09:42:14 -04:00
types_commit_options.go Enhance bindings for IDE hints 2021-09-16 09:42:14 -04:00
types_copy_options.go Enhance bindings for IDE hints 2021-09-16 09:42:14 -04:00
types_create_options.go Enhance bindings for IDE hints 2021-09-16 09:42:14 -04:00
types_diff_options.go Enhance bindings for IDE hints 2021-09-16 09:42:14 -04:00
types_execinspect_options.go Enhance bindings for IDE hints 2021-09-16 09:42:14 -04:00
types_execstart_options.go Enhance bindings for IDE hints 2021-09-16 09:42:14 -04:00
types_execstartandattach_options.go Enhance bindings for IDE hints 2021-09-16 09:42:14 -04:00
types_exists_options.go Enhance bindings for IDE hints 2021-09-16 09:42:14 -04:00
types_export_options.go Enhance bindings for IDE hints 2021-09-16 09:42:14 -04:00
types_healthcheck_options.go Enhance bindings for IDE hints 2021-09-16 09:42:14 -04:00
types_init_options.go Enhance bindings for IDE hints 2021-09-16 09:42:14 -04:00
types_inspect_options.go Enhance bindings for IDE hints 2021-09-16 09:42:14 -04:00
types_kill_options.go Enhance bindings for IDE hints 2021-09-16 09:42:14 -04:00
types_list_options.go Enhance bindings for IDE hints 2021-09-16 09:42:14 -04:00
types_log_options.go Enhance bindings for IDE hints 2021-09-16 09:42:14 -04:00
types_mount_options.go Enhance bindings for IDE hints 2021-09-16 09:42:14 -04:00
types_mountedcontainerpaths_options.go Enhance bindings for IDE hints 2021-09-16 09:42:14 -04:00
types_pause_options.go Enhance bindings for IDE hints 2021-09-16 09:42:14 -04:00
types_prune_options.go Enhance bindings for IDE hints 2021-09-16 09:42:14 -04:00
types_remove_options.go Enhance bindings for IDE hints 2021-09-16 09:42:14 -04:00
types_rename_options.go Enhance bindings for IDE hints 2021-09-16 09:42:14 -04:00
types_resizeexectty_options.go Enhance bindings for IDE hints 2021-09-16 09:42:14 -04:00
types_resizetty_options.go Enhance bindings for IDE hints 2021-09-16 09:42:14 -04:00
types_restart_options.go Enhance bindings for IDE hints 2021-09-16 09:42:14 -04:00
types_restore_options.go Enhance bindings for IDE hints 2021-09-16 09:42:14 -04:00
types_shouldrestart_options.go Enhance bindings for IDE hints 2021-09-16 09:42:14 -04:00
types_start_options.go Enhance bindings for IDE hints 2021-09-16 09:42:14 -04:00
types_stats_options.go Enhance bindings for IDE hints 2021-09-16 09:42:14 -04:00
types_stop_options.go Enhance bindings for IDE hints 2021-09-16 09:42:14 -04:00
types_top_options.go Enhance bindings for IDE hints 2021-09-16 09:42:14 -04:00
types_unmount_options.go Enhance bindings for IDE hints 2021-09-16 09:42:14 -04:00
types_unpause_options.go Enhance bindings for IDE hints 2021-09-16 09:42:14 -04:00
types_wait_options.go Enhance bindings for IDE hints 2021-09-16 09:42:14 -04:00