-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix resize race with podman exec -it #10683
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Luap99 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
13cfb1a
to
18f0d40
Compare
pkg/api/server/register_exec.go
Outdated
@@ -272,7 +272,13 @@ func (s *APIServer) registerExecHandlers(r *mux.Router) error { | |||
// description: Detach from the command. Not presently supported. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is definitely supported, I don't know why the docs say it isn't.
Approach LGTM, but the function signatures modified should also have their comments changed to describe the new parameter. |
When starting a process with `podman exec -it` the terminal is resized after the process is started. To fix this allow exec start to accept the terminal height and width as parameter and let it resize right before the process is started. Fixes containers#10560 Signed-off-by: Paul Holzinger <[email protected]>
LGTM |
/lgtm |
/hold cancel |
Uh-oh. My flake catcher detected that the new test flaked (sys podman ubuntu-2104 root host):
This is really really bad: it means that the test is not reliable, and is going to start flaking in CI. |
When starting a process with
podman exec -it
the terminal is resizedafter the process is started. To fix this allow exec start to accept the
terminal height and width as parameter and let it resize right before
the process is started.
Fixes #10560