Skip to content

Commit a59d0ac

Browse files
committed
exec: wait for I/O completion before return
Signed-off-by: Swagat Bora <[email protected]>
1 parent 0b89b6b commit a59d0ac

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/cmd/container/exec.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,10 @@ func execActionWithContainer(ctx context.Context, client *containerd.Client, con
134134
return nil
135135
}
136136
status := <-statusC
137+
138+
process.IO().Wait()
139+
process.IO().Close()
140+
137141
code, _, err := status.Result()
138142
if err != nil {
139143
return err

0 commit comments

Comments
 (0)