Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

shimv2: fix the issue of close IO stream (backport from 2.0) #2885

Merged
merged 1 commit into from
Aug 19, 2020

Conversation

lifupan
Copy link
Member

@lifupan lifupan commented Aug 11, 2020

It should wait until the stdin io copy
termianted to close the process's io stream,
otherwise, it would miss forwarding some contents
to process stdin.

Fixes: #2884

Signed-off-by: fupan.lfp [email protected]

It should wait until the stdin io copy
termianted to close the process's io stream,
otherwise, it would miss forwarding some contents
to process stdin.

Fixes: kata-containers#2884

Signed-off-by: fupan.lfp <[email protected]>
@fidencio
Copy link
Member

/test

Copy link
Member

@fidencio fidencio left a comment

Choose a reason for hiding this comment

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

lgtm and thanks for backporting this to 1.x!

@codecov
Copy link

codecov bot commented Aug 11, 2020

Codecov Report

Merging #2885 into master will increase coverage by 0.01%.
The diff coverage is 9.09%.

@@            Coverage Diff             @@
##           master    #2885      +/-   ##
==========================================
+ Coverage   51.19%   51.20%   +0.01%     
==========================================
  Files         118      118              
  Lines       17392    17407      +15     
==========================================
+ Hits         8903     8913      +10     
- Misses       7408     7413       +5     
  Partials     1081     1081              

Copy link
Contributor

@jodh-intel jodh-intel left a comment

Choose a reason for hiding this comment

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

Thanks @lifupan.

lgtm

@lifupan
Copy link
Member Author

lifupan commented Aug 13, 2020

Hi @chavafg

Can you take a look on the failed CI? It seems they were not related with this PR.

@chavafg
Copy link
Contributor

chavafg commented Aug 13, 2020

We can ignore sles and arm jobs, /cc @jcvenegas for clh metrics job and /cc @devimc for vfio job.

@devimc
Copy link

devimc commented Aug 13, 2020

restarting vfio job

1 similar comment
@lifupan
Copy link
Member Author

lifupan commented Aug 18, 2020

restarting vfio job

@lifupan
Copy link
Member Author

lifupan commented Aug 18, 2020

Hi @devimc
It seemed the vfio CI job always failed. Could you have a look on it?

@bergwolf
Copy link
Member

vfio failure is unrelated. Let's merge it!

@bergwolf bergwolf merged commit b9501dc into kata-containers:master Aug 19, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

shimv2: close process's IO before stdin io copy terminated(backport from 2.0)
6 participants