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

container stop may interrupt ongoing std streams #604

Closed
gnawux opened this issue Apr 10, 2017 · 0 comments · Fixed by #605
Closed

container stop may interrupt ongoing std streams #604

gnawux opened this issue Apr 10, 2017 · 0 comments · Fixed by #605

Comments

@gnawux
Copy link
Member

gnawux commented Apr 10, 2017

Illustrated as the following figure, the container stop event will lead to streamconfig.CloseStreams(), which will close stdin pipe, and then lead to tty.Close()

img_4285

This issue was found during process #586 and has not fixed yet.

feiskyer added a commit to feiskyer/frakti that referenced this issue Apr 10, 2017
gnawux added a commit to gnawux/hyper that referenced this issue Apr 10, 2017
fix hyperhq#604

The container stopping should hup all streams if there are any.
Just check and reclaim any remains after a period should be safe.

Need update hyperhq#585 later if this is approved

Signed-off-by: Wang Xu <gnawux@gmail.com>
@gnawux gnawux self-assigned this Apr 10, 2017
@gnawux gnawux added this to the v0.8.1 milestone Apr 10, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant