Skip to content

Commit

Permalink
Merge pull request #5106 from tonistiigi/executor-cancel-return
Browse files Browse the repository at this point in the history
executor: fix cancellation before start signal
  • Loading branch information
AkihiroSuda authored Jul 2, 2024
2 parents a08a9b6 + 7089987 commit 74c6f57
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion executor/runcexecutor/executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -610,9 +610,14 @@ func runcProcessHandle(ctx context.Context, killer procKiller) (*procHandle, con
go func() {
// Wait for pid
select {
case <-ctx.Done():
case <-p.ended:
return // nothing to kill
case <-p.ready:
select {
case <-p.ended:
return
default:
}
}

for {
Expand Down

0 comments on commit 74c6f57

Please sign in to comment.