-
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
containers/attach: Note bug around goroutine leak #23233
containers/attach: Note bug around goroutine leak #23233
Conversation
Searching around a bit https://groups.google.com/g/golang-nuts/c/4ZrDw__VkyI looks like the most related thread. I can imagine doing that, basically drop down to a select/poll syscall on the fd, and have that send a message on a channel when ready; the other goroutine selects on that and the cancellation context. When the select chan is ready we do a single read+write cycle. In the end, it is just simpler and clearer for us to just fork off |
Yeah this is really the ugly parts about go that you cannot cancel a read without closing the stream. Also your tree is outdated please rebase on the latest main |
Yeah that would make it ugly as we have to support the bindings on windows as well. So then we woul dend up with OS specific code... |
87cb8e9
to
cc53d8d
Compare
See: - containers/podman-bootc#59 (comment) - containers/podman-bootc#61 Sorry for not trying to fix this, but I am not aware of a remotely straightforward way to do so. Signed-off-by: Colin Walters <[email protected]>
cc53d8d
to
4336c5a
Compare
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.
LGTM
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cgwalters, 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 |
Ephemeral COPR build failed. @containers/packit-build please check. |
/lgtm |
See:
podman run
podman-bootc#61Sorry for not trying to fix this, but I am not aware of a remotely straightforward way to do so.