Skip to content

[24.0 backport] pkg/ioutils: Make subsequent Close attempts noop#47221

Merged
thaJeztah merged 1 commit intomoby:24.0from
vvoland:pkg-pools-close-noop-24
Jan 25, 2024
Merged

[24.0 backport] pkg/ioutils: Make subsequent Close attempts noop#47221
thaJeztah merged 1 commit intomoby:24.0from
vvoland:pkg-pools-close-noop-24

Conversation

@vvoland
Copy link
Copy Markdown
Contributor

@vvoland vvoland commented Jan 25, 2024

Turn subsequent Close calls into a no-op and produce a warning with an optional stack trace (if debug mode is enabled).

Signed-off-by: Paweł Gronowski [email protected]
(cherry picked from commit 585d74b)

- What I did

- How I did it

- How to verify it

- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)

@vvoland vvoland self-assigned this Jan 25, 2024
@vvoland vvoland added this to the 24.0.8 milestone Jan 25, 2024
Turn subsequent `Close` calls into a no-op and produce a warning with an
optional stack trace (if debug mode is enabled).

Signed-off-by: Paweł Gronowski <[email protected]>
(cherry picked from commit 585d74b)
Signed-off-by: Paweł Gronowski <[email protected]>
@vvoland vvoland force-pushed the pkg-pools-close-noop-24 branch from a869129 to 2918d58 Compare January 25, 2024 14:24
Copy link
Copy Markdown
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@thaJeztah thaJeztah merged commit 61c51fb into moby:24.0 Jan 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants