podman/pkg
Paul Holzinger 9e2e7f2a77 podman exec: correctly support detaching
podman exec support detaching early via the detach key sequence. In that
case the podman process should exit successfully but the container exec
process keeps running.

Now I wrote automated test for both podman run and exec detach but this
uncovered several larger issues:
 - detach sequence parsing is broken[1]
 - podman-remote exec detach is broken[2]
 - detach in general seems to be buggy/racy, seeing lot of flakes that
   fail to restore the terminal and get an EIO instead, i.e.
   "Unable to restore terminal: input/output error"

Thus I cannot add tests for now but this commit should at least fix the
obvoius case as reported by the user so I like to get this in regardless
and I will work through the other issues once I have more time.

Fixes #24895

[1] https://github.com/containers/common/pull/2302
[2] https://github.com/containers/podman/issues/25089

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-02-03 01:50:55 +00:00
..
annotations update golangci-lint to 1.60.1 2024-08-19 11:41:28 +02:00
api podman exec: correctly support detaching 2025-02-03 01:50:55 +00:00
auth update golangci/golangci-lint to v1.63.4 2025-01-07 15:48:53 +01:00
autoupdate Vendor c/common:8483ef6022b4 2024-08-30 16:13:54 +02:00
bindings Clean up after unexpectedly terminated build 2025-01-27 14:21:27 +01:00
channel
checkpoint Enable pod restore with crun 2024-10-21 17:37:20 +01:00
copy
criu
ctime update golangci/golangci-lint to v1.63.4 2025-01-07 15:48:53 +01:00
domain podman exec: correctly support detaching 2025-02-03 01:50:55 +00:00
emulation
env update golangci/golangci-lint to v1.63.4 2025-01-07 15:48:53 +01:00
errorhandling bump go to 1.22 2024-09-03 15:14:15 +02:00
farm bump go to 1.22 2024-09-03 15:14:15 +02:00
fileserver
inspect
k8s.io Add kube play support for image volume source 2024-09-10 12:37:06 +00:00
libartifact podman artifact 2025-01-21 12:47:30 -06:00
lookup
machine Move detection of libkrun and intel 2025-01-30 15:37:47 +00:00
namespaces namespaces: allow configuring keep-id userns size 2025-01-08 10:08:29 +01:00
parallel
ps Ignore missing containers when calling GetExternalContainerLists 2024-08-05 08:18:57 -04:00
rctl
rootless vendor: update containers/storage 2024-09-24 20:28:30 +02:00
seccomp
selinux
signal refacto: unknown signal return signal number without prefix 2024-02-28 19:45:03 +01:00
specgen Merge pull request #24974 from rhatdan/quadlet 2025-01-20 14:34:13 +00:00
specgenutil do not set the CreateCommand for API users 2025-01-22 19:13:08 +01:00
specgenutilexternal
systemd Merge pull request #25011 from AhmedMoalla/fix-wrongly-ported-cunescape_one 2025-01-15 11:44:56 +00:00
terminal Fix Lint on Windows and enable the job 2024-02-20 08:06:18 -05:00
timetype
trust pkg/trust: use fileutils.(Le|E)xists 2024-04-19 09:52:14 +02:00
util Switch all calls of assert.Nil to assert.NoError 2025-01-15 07:08:27 -05:00