This repository has been archived by the owner on Oct 13, 2023. It is now read-only.
forked from moby/moby
-
Notifications
You must be signed in to change notification settings - Fork 424
[19.03 backport] Handle blocked I/O of exec'd processes #296
Merged
andrewhsu
merged 2 commits into
docker-archive:19.03
from
thaJeztah:19.03_backport_exec_hang
Sep 23, 2019
Merged
[19.03 backport] Handle blocked I/O of exec'd processes #296
andrewhsu
merged 2 commits into
docker-archive:19.03
from
thaJeztah:19.03_backport_exec_hang
Sep 23, 2019
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Looks like the RS1 machines have issues again
|
kolyshkin
approved these changes
Aug 7, 2019
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
In fact, it make sense to also pick up moby#39677 here |
thaJeztah
force-pushed
the
19.03_backport_exec_hang
branch
from
September 4, 2019 20:59
18daa44
to
9f163a7
Compare
@kolyshkin I added moby#39677 |
thaJeztah
force-pushed
the
19.03_backport_exec_hang
branch
2 times, most recently
from
September 12, 2019 08:14
1ae7c67
to
51c3cac
Compare
thaJeztah
force-pushed
the
19.03_backport_exec_hang
branch
from
September 20, 2019 07:27
51c3cac
to
a92dbea
Compare
This is the second part to containerd/containerd#3361 and will help process delete not block forever when the process exists but the I/O was inherited by a subprocess that lives on. Signed-off-by: Michael Crosby <[email protected]> (cherry picked from commit b5f2886) Signed-off-by: Sebastiaan van Stijn <[email protected]>
Reported by govet linter: > daemon/monitor.go:57:9: lostcancel: the cancel function returned by context.WithTimeout should be called, not discarded, to avoid a context leak (govet) > ctx, _ := context.WithTimeout(context.Background(), 2*time.Second) > ^ > daemon/monitor.go:128:9: lostcancel: the cancel function returned by context.WithTimeout should be called, not discarded, to avoid a context leak (govet) > ctx, _ := context.WithTimeout(context.Background(), 2*time.Second) > ^ Fixes: b5f288 ("Handle blocked I/O of exec'd processes") Signed-off-by: Kir Kolyshkin <[email protected]> (cherry picked from commit 53cbf17) Signed-off-by: Sebastiaan van Stijn <[email protected]>
thaJeztah
force-pushed
the
19.03_backport_exec_hang
branch
from
September 20, 2019 17:11
a92dbea
to
e489130
Compare
andrewhsu
approved these changes
Sep 23, 2019
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.
SGTM
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
backport of moby#39383 and moby#39677
fixes moby#39326
moby#39383 Handle blocked I/O of exec'd processes
This is the second part to containerd/containerd#3361 and will help process delete not block forever when the process exists but the I/O was inherited by a subprocess that lives on.
moby#39677 daemon/ProcessEvent: make sure to cancel the contexts:
Reported by govet linter:
Fixes: b5f2886 ("Handle blocked I/O of exec'd processes", PR moby#39383)