Skip to content

executor: fix cancellation before start signal - #5106

Merged
AkihiroSuda merged 1 commit into
moby:masterfrom
tonistiigi:executor-cancel-return
Jul 2, 2024
Merged

AkihiroSuda merged 1 commit into
moby:masterfrom
tonistiigi:executor-cancel-return

Conversation

@tonistiigi

@tonistiigi tonistiigi commented Jul 1, 2024 •

Copy link
Copy Markdown
Member

If context is canceled before the process is ready then kill goroutine returns early because there is nothing to kill. But the process may still start after this and in that case remain running without cancellation. Fix is to skip cancellation only if the run goroutine is ended, as then the process will not be started.

If context is canceled before the process is ready
then kill goroutine returns early because there is nothing
to kill. But the process may still start after this and
that case remain running without cancellation. Fix is to skip
cancellation only if the run goroutine is ended, as then the
process will not be started.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
@AkihiroSuda
AkihiroSuda merged commit 74c6f57 into moby:master Jul 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants